Revision: 29349
http://sourceforge.net/p/bibdesk/svn/29349
Author: hofman
Date: 2025-07-24 14:12:25 +0000 (Thu, 24 Jul 2025)
Log Message:
-----------
combine if clauses
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-07-24 14:02:52 UTC (rev 29348)
+++ trunk/bibdesk/BibDocument_UI.m 2025-07-24 14:12:25 UTC (rev 29349)
@@ -1347,10 +1347,8 @@
static BOOL smartGroupsDependOnKey(NSArray *smartGroupKeys, NSString *key) {
if ([smartGroupKeys count] == 0)
return NO;
- else if ([smartGroupKeys containsObject:BDSKDateModifiedString])
+ else if (key == nil || [smartGroupKeys containsObject:key] ||
[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])
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