Revision: 27798
          http://sourceforge.net/p/bibdesk/svn/27798
Author:   hofman
Date:     2022-08-12 19:13:46 +0000 (Fri, 12 Aug 2022)
Log Message:
-----------
make sure saved plist reuses icon URL strings

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

Modified: trunk/bibdesk/BDSKWebIconDatabase.m
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-12 19:05:18 UTC (rev 27797)
+++ trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-12 19:13:46 UTC (rev 27798)
@@ -161,6 +161,7 @@
     NSMutableArray *pagesToRemove = [NSMutableArray array];
     NSMutableSet *iconsToRemove = [NSMutableSet set];
     NSMutableSet *iconsToKeep = [NSMutableSet set];
+    NSSet *iconURLStrings = [NSSet setWithArray:[icons allKeys]];
     [pages enumerateKeysAndObjectsUsingBlock:^(NSString *key, id obj, BOOL 
*stop){
         NSString *iconURLString = [obj objectForKey:ICONURL_KEY];
         if ([bookmarkURLs containsObject:key] == NO && -[[obj 
objectForKey:LASTVISITED_KEY] timeIntervalSinceNow] > limit) {
@@ -167,7 +168,7 @@
             [pagesToRemove addObject:key];
             [iconsToRemove addObject:iconURLString];
         } else {
-            [iconsToKeep addObject:iconURLString];
+            [iconsToKeep addObject:[iconURLStrings member:iconURLString]];
             [pages setObject:iconURLString forKey:ICONURL_KEY];
             NSDate *date = [obj objectForKey:LASTVISITED_KEY];
             if (date)

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