Revision: 27799
          http://sourceforge.net/p/bibdesk/svn/27799
Author:   hofman
Date:     2022-08-12 21:58:41 +0000 (Fri, 12 Aug 2022)
Log Message:
-----------
check whether normalized icon URL was used

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

Modified: trunk/bibdesk/BDSKWebIconDatabase.m
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-12 19:13:46 UTC (rev 27798)
+++ trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-12 21:58:41 UTC (rev 27799)
@@ -167,12 +167,14 @@
         if ([bookmarkURLs containsObject:key] == NO && -[[obj 
objectForKey:LASTVISITED_KEY] timeIntervalSinceNow] > limit) {
             [pagesToRemove addObject:key];
             [iconsToRemove addObject:iconURLString];
-        } else {
-            [iconsToKeep addObject:[iconURLStrings member:iconURLString]];
+        } else if ((iconURLString = [iconURLStrings member:iconURLString])) {
+            [iconsToKeep addObject:iconURLString];
             [pages setObject:iconURLString forKey:ICONURL_KEY];
             NSDate *date = [obj objectForKey:LASTVISITED_KEY];
             if (date)
                 [pages setObject:date forKey:LASTVISITED_KEY];
+        } else {
+            [pagesToRemove addObject:key];
         }
     }];
     [iconsToRemove minusSet:iconsToKeep];

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