Revision: 23948
          http://sourceforge.net/p/bibdesk/svn/23948
Author:   hofman
Date:     2019-07-05 22:40:22 +0000 (Fri, 05 Jul 2019)
Log Message:
-----------
remove download before changing files, or it will be updated because of moving 
it

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2019-07-05 22:17:20 UTC (rev 23947)
+++ trunk/bibdesk/BibItem.m     2019-07-05 22:40:22 UTC (rev 23948)
@@ -3199,6 +3199,8 @@
 - (void)itemDownload:(BDSKItemDownload *)download didFinishWithURL:(NSURL 
*)fileURL {
     NSUInteger idx = [download index];
     NSDictionary *userInfo = [NSDictionary dictionaryWithObject:download 
forKey:BDSKItemDownloadKey];
+    [[download retain] autorelease];
+    [downloads removeObject:download];
     [[NSNotificationCenter defaultCenter] 
postNotificationName:BDSKItemDownloadFinishedNotification object:self 
userInfo:userInfo];
     if (fileURL) {
         BOOL useLocalUrl = [[NSUserDefaults standardUserDefaults] 
boolForKey:BDSKUseLocalUrlAndUrlKey];
@@ -3229,7 +3231,6 @@
             }
         }
     }
-    [downloads removeObject:download];
 }
 
 - (void)downloadURLForField:(NSString *)field {

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