Revision: 29345
          http://sourceforge.net/p/bibdesk/svn/29345
Author:   hofman
Date:     2025-07-23 23:07:21 +0000 (Wed, 23 Jul 2025)
Log Message:
-----------
not all fields are matched in Any Field smart groups

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

Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m      2025-07-23 22:32:49 UTC (rev 29344)
+++ trunk/bibdesk/BibDocument_UI.m      2025-07-23 23:07:21 UTC (rev 29345)
@@ -1347,10 +1347,12 @@
 static BOOL smartGroupsDependOnKey(NSArray *smartGroupKeys, NSString *key) {
     if ([smartGroupKeys count] == 0)
         return NO;
-    else if ([smartGroupKeys containsObject:BDSKDateModifiedString] || 
[smartGroupKeys containsObject:BDSKAllFieldsString])
+    else if ([smartGroupKeys containsObject:BDSKDateModifiedString])
         return YES;
     else if (key == nil || [smartGroupKeys containsObject:key])
         return YES;
+    else if ([smartGroupKeys containsObject:BDSKAllFieldsString] && [key 
isIntegerField] == NO && [key isGeneralURLField] == NO && [key 
isEqualToString:BDSKCiteKeyString] && [key 
isEqualToString:BDSKPubTypeStringKey] == NO)
+        return YES;
     else if ([key isEqualToString:BDSKColorString])
         return [smartGroupKeys containsObject:BDSKColorLabelString];
     else

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