Revision: 26919
          http://sourceforge.net/p/bibdesk/svn/26919
Author:   hofman
Date:     2021-09-17 15:34:00 +0000 (Fri, 17 Sep 2021)
Log Message:
-----------
No early return

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

Modified: trunk/bibdesk/BDSKFileMatcher.m
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.m     2021-09-17 15:12:08 UTC (rev 26918)
+++ trunk/bibdesk/BDSKFileMatcher.m     2021-09-17 15:34:00 UTC (rev 26919)
@@ -630,14 +630,14 @@
 - (void)handleRemoveDocumentNotification:(NSNotification *)notification {
     if ([abortButton isEnabled]) {
         documentWasRemoved = YES;
-        return;
+    } else {
+        NSArray *nodesToRemove = [matches 
filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"pub.owner = 
nil"]];
+        if ([nodesToRemove count]) {
+            [matches removeObjectsInArray:nodesToRemove];
+            [outlineView reloadData];
+        }
+        documentWasRemoved = NO;
     }
-    NSArray *nodesToRemove = [matches filteredArrayUsingPredicate:[NSPredicate 
predicateWithFormat:@"pub.owner = nil"]];
-    if ([nodesToRemove count]) {
-        [matches removeObjectsInArray:nodesToRemove];
-        [outlineView reloadData];
-    }
-    documentWasRemoved = NO;
 }
 
 @end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to