Revision: 27685
http://sourceforge.net/p/bibdesk/svn/27685
Author: hofman
Date: 2022-07-03 23:35:52 +0000 (Sun, 03 Jul 2022)
Log Message:
-----------
don't change crossref of child items when cite key changes through undo or
redo. Any needed change should be part of the undo/redo action, and shouldnot
be duplicated.
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2022-07-03 23:27:25 UTC (rev 27684)
+++ trunk/bibdesk/BibDocument_UI.m 2022-07-03 23:35:52 UTC (rev 27685)
@@ -1419,7 +1419,7 @@
if([changedKey isEqualToString:BDSKCiteKeyString]){
oldKey = [userInfo objectForKey:BDSKBibItemOldValueKey];
[publications changeCiteKey:oldKey toCiteKey:key forItem:pub];
- if([NSString isEmptyString:oldKey] || [oldKey isEqualToString:[BibItem
defaultCiteKey]] || [NSString isEmptyString:key] || [key
isEqualToString:[BibItem defaultCiteKey]])
+ if([NSString isEmptyString:oldKey] || [oldKey isEqualToString:[BibItem
defaultCiteKey]] || [NSString isEmptyString:key] || [key
isEqualToString:[BibItem defaultCiteKey]] || [[self undoManager] isUndoing] ||
[[self undoManager] isRedoing])
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