Revision: 27554
          http://sourceforge.net/p/bibdesk/svn/27554
Author:   hofman
Date:     2022-06-04 18:17:40 +0000 (Sat, 04 Jun 2022)
Log Message:
-----------
only update flags when cite key changes

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2022-06-04 18:11:49 UTC (rev 27553)
+++ trunk/bibdesk/BibItem.m     2022-06-04 18:17:40 UTC (rev 27554)
@@ -1043,8 +1043,10 @@
        
     [self setCiteKeyString:newCiteKey];
     [self setModifiedDate:date];
-       [self updateMetadataForKey:BDSKCiteKeyString];
-               
+    // no need to further call updateMetadataForKey:
+    hasBeenEdited = YES;
+    spotlightMetadataChanged = YES;
+    
     NSDictionary *notifInfo = [NSDictionary 
dictionaryWithObjectsAndKeys:BDSKCiteKeyString, BDSKBibItemKeyKey, newCiteKey, 
BDSKBibItemNewValueKey, oldCiteKey, BDSKBibItemOldValueKey, nil];
 
     [[NSFileManager defaultManager] 
removeSpotlightCacheFileForCiteKey:oldCiteKey];
@@ -1706,7 +1708,7 @@
     }
     
     if ([mutableArray count])
-        [info setObject:mutableArray forKey:(NSString *)kMDItemWhereFroms];
+    [info setObject:mutableArray forKey:(NSString *)kMDItemWhereFroms];
     [mutableArray release];
     
     return info;

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