Revision: 29526
http://sourceforge.net/p/bibdesk/svn/29526
Author: hofman
Date: 2025-09-03 16:35:24 +0000 (Wed, 03 Sep 2025)
Log Message:
-----------
don't make unique file url, the save panel will check and confirm file overwrite
Modified Paths:
--------------
trunk/bibdesk/BDSKDownloadManager.m
Modified: trunk/bibdesk/BDSKDownloadManager.m
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.m 2025-09-03 16:20:13 UTC (rev 29525)
+++ trunk/bibdesk/BDSKDownloadManager.m 2025-09-03 16:35:24 UTC (rev 29526)
@@ -232,7 +232,7 @@
[sPanel setDirectoryURL:downloadsURL];
if ([sPanel runModal] == NSModalResponseOK) {
- NSURL *fileURL = [[NSFileManager defaultManager]
uniqueFileURL:[sPanel URL]];
+ NSURL *fileURL = [sPanel URL];
if ([[NSFileManager defaultManager] moveItemAtURL:[webDownload
fileURL] toURL:fileURL error:NULL])
[webDownload setFileURL:fileURL];
}
@@ -319,7 +319,7 @@
NSWindow *window = [[download webView] window];
void (^handler)(NSModalResponse) = ^(NSModalResponse result){
if (result == NSModalResponseOK) {
- NSURL *fileURL = [[NSFileManager defaultManager]
uniqueFileURL:[sPanel URL]];
+ NSURL *fileURL = [sPanel URL];
completionHandler(fileURL);
[[self webDownloadForDownload:download] setFileURL: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