Revision: 25185
          http://sourceforge.net/p/bibdesk/svn/25185
Author:   hofman
Date:     2020-12-12 17:34:57 +0000 (Sat, 12 Dec 2020)
Log Message:
-----------
Just compare single object

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2020-12-12 17:28:04 UTC (rev 25184)
+++ trunk/bibdesk/BibItem.m     2020-12-12 17:34:57 UTC (rev 25185)
@@ -1082,7 +1082,7 @@
        if ([NSString isEmptyString:proposedCiteKey])
         return NO;
     NSArray *items = [[owner publications] allItemsForCiteKey:proposedCiteKey];
-    return [items count] == 0 || ([items count] == 1 && [items 
containsObject:self]);
+    return [items count] == 0 || ([items count] == 1 && [items firstObject] == 
self);
 }
 
 - (BOOL)citeKeyIsCrossreffed:(NSString *)key{

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