Revision: 29553
http://sourceforge.net/p/bibdesk/svn/29553
Author: hofman
Date: 2025-09-08 14:10:55 +0000 (Mon, 08 Sep 2025)
Log Message:
-----------
only set temporary file URL when moving succeeded
Modified Paths:
--------------
trunk/bibdesk/BDSKDownloadManager.m
Modified: trunk/bibdesk/BDSKDownloadManager.m
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.m 2025-09-08 09:36:37 UTC (rev 29552)
+++ trunk/bibdesk/BDSKDownloadManager.m 2025-09-08 14:10:55 UTC (rev 29553)
@@ -261,8 +261,8 @@
// if a file exists, the user should have confirmed to overwrite
if ([fileURL checkResourceIsReachableAndReturnError:NULL]) {
NSURL *tmpURL = [[NSFileManager defaultManager]
temporaryFileURLWithBasename:[fileURL lastPathComponent]];
- [[NSFileManager defaultManager] moveItemAtURL:fileURL
toURL:tmpURL error:NULL];
- [[self webDownloadForDownload:download] setTempFileURL:tmpURL];
+ if ([[NSFileManager defaultManager] moveItemAtURL:fileURL
toURL:tmpURL error:NULL])
+ [[self webDownloadForDownload:download]
setTempFileURL:tmpURL];
}
completionHandler(fileURL);
} else {
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