Revision: 27674
          http://sourceforge.net/p/bibdesk/svn/27674
Author:   hofman
Date:     2022-07-01 15:36:50 +0000 (Fri, 01 Jul 2022)
Log Message:
-----------
don't update cite key back to empty or default cite key

Modified Paths:
--------------
    trunk/bibdesk/BibDocument_UI.m

Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m      2022-07-01 15:33:38 UTC (rev 27673)
+++ trunk/bibdesk/BibDocument_UI.m      2022-07-01 15:36:50 UTC (rev 27674)
@@ -1417,7 +1417,7 @@
     if([changedKey isEqualToString:BDSKCiteKeyString]){
         oldKey = [userInfo objectForKey:BDSKBibItemOldValueKey];
         [publications changeCiteKey:oldKey toCiteKey:key forItem:pub];
-        if([NSString isEmptyString:oldKey] || [oldKey isEqualToString:[BibItem 
defaultCiteKey]])
+        if([NSString isEmptyString:oldKey] || [oldKey isEqualToString:[BibItem 
defaultCiteKey]] || [NSString isEmptyString:key] || [key 
isEqualToString:[BibItem defaultCiteKey]])
             oldKey = nil;
     }
     

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to