Revision: 28678
          http://sourceforge.net/p/bibdesk/svn/28678
Author:   hofman
Date:     2024-01-25 23:08:33 +0000 (Thu, 25 Jan 2024)
Log Message:
-----------
Don't check whether group cchanges when setting in condition, as the grouop 
would already be nol when the group is deallocating, and we still need to stop 
the timer

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

Modified: trunk/bibdesk/BDSKCondition.m
===================================================================
--- trunk/bibdesk/BDSKCondition.m       2024-01-25 17:49:23 UTC (rev 28677)
+++ trunk/bibdesk/BDSKCondition.m       2024-01-25 23:08:33 UTC (rev 28678)
@@ -568,14 +568,12 @@
 }
 
 - (void)setGroup:(id<BDSKSmartGroup>)newGroup {
-    if (group != newGroup) {
-        group = newGroup;
-        if ([self isDateCondition] && group == nil) {
-            [cacheTimer invalidate];
-            cacheTimer = nil;
-            cachedStartDate = nil;
-            cachedEndDate = nil;
-        }
+    group = newGroup;
+    if ([self isDateCondition] && group == nil) {
+        [cacheTimer invalidate];
+        cacheTimer = nil;
+        cachedStartDate = nil;
+        cachedEndDate = nil;
     }
 }
 

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