Revision: 30096
          http://sourceforge.net/p/bibdesk/svn/30096
Author:   hofman
Date:     2026-03-03 16:56:55 +0000 (Tue, 03 Mar 2026)
Log Message:
-----------
use enumeration method

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-03-01 
23:00:52 UTC (rev 30095)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-03-03 
16:56:55 UTC (rev 30096)
@@ -1967,16 +1967,17 @@
         [self _updatePreviewer];
     }
     
-    for (NSURL *url in [_progressIndicators allKeys]) {
-        FVProgressIndicator *progressIndicator = [_progressIndicators 
objectForKey:url];
-        NSUInteger anIndex = [progressIndicator indexInView];
-        if ([_orderedURLs containsObject:url] == NO) {
-            [self removeProgressIndicatorForURL:url atIndex:anIndex];
-        } else if (anIndex >= [self numberOfIcons] || [[self 
URLAtIndex:anIndex] isEqual:url] == NO) {
-            anIndex = [_orderedURLs indexOfObject:url];
-            [progressIndicator setIndexInView:anIndex];
-            [progressIndicator setFrame:[self 
_rectOfProgressIndicatorForIconAtIndex:anIndex]];
-        }
+    if ([_progressIndicators count] > 0) {
+        [_progressIndicators enumerateKeysAndObjectsUsingBlock:^(NSURL *url, 
FVProgressIndicator *progressIndicator, BOOL *stop){
+            NSUInteger anIndex = [progressIndicator indexInView];
+            if ([_orderedURLs containsObject:url] == NO) {
+                [self removeProgressIndicatorForURL:url atIndex:anIndex];
+            } else if (anIndex >= [self numberOfIcons] || [[self 
URLAtIndex:anIndex] isEqual:url] == NO) {
+                anIndex = [_orderedURLs indexOfObject:url];
+                [progressIndicator setIndexInView:anIndex];
+                [progressIndicator setFrame:[self 
_rectOfProgressIndicatorForIconAtIndex:anIndex]];
+            }
+        }];
     }
     
     [self _resetViewLayout];

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