Revision: 25179
          http://sourceforge.net/p/bibdesk/svn/25179
Author:   hofman
Date:     2020-12-11 14:44:20 +0000 (Fri, 11 Dec 2020)
Log Message:
-----------
Empty cite key is never valid

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

Modified: trunk/bibdesk/BDSKPreviewItem.m
===================================================================
--- trunk/bibdesk/BDSKPreviewItem.m     2020-12-11 14:24:52 UTC (rev 25178)
+++ trunk/bibdesk/BDSKPreviewItem.m     2020-12-11 14:44:20 UTC (rev 25179)
@@ -128,7 +128,7 @@
     return ([field isEqualToString:BDSKAuthorString]) ? pubAuthors : [NSArray 
array];
 }
 
-- (BOOL)isValidCiteKey:(NSString *)key { return YES; }
+- (BOOL)isValidCiteKey:(NSString *)key { return [NSString isEmptyString:key] 
== NO; }
 
 - (NSString *)suggestedLocalFilePath {
        NSString *localFileFormat = [[NSUserDefaults standardUserDefaults] 
stringForKey:BDSKLocalFileFormatKey];

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