Revision: 29486
          http://sourceforge.net/p/bibdesk/svn/29486
Author:   hofman
Date:     2025-08-27 17:01:06 +0000 (Wed, 27 Aug 2025)
Log Message:
-----------
don't show alert for user canceled

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

Modified: trunk/bibdesk/BDSKDownloadManager.m
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.m 2025-08-27 16:52:18 UTC (rev 29485)
+++ trunk/bibdesk/BDSKDownloadManager.m 2025-08-27 17:01:06 UTC (rev 29486)
@@ -179,6 +179,9 @@
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:BDSKRemoveFailedDownloadsKey] && webDownload)
         [downloads removeObject:webDownload];
     
+    if ([[error domain] isEqualToString:NSURLErrorDomain] && [error code] == 
NSURLErrorCancelled)
+        return;
+    
     NSString *errorDescription = [error localizedDescription] ?: 
NSLocalizedString(@"An error occured during download.", @"Informative text in 
alert dialog");
     NSAlert *alert = [[NSAlert alloc] init];
     [alert setMessageText:NSLocalizedString(@"Download Failed", @"Message in 
alert dialog when download failed")];
@@ -229,6 +232,9 @@
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:BDSKRemoveFailedDownloadsKey] && webDownload)
         [downloads removeObject:webDownload];
     
+    if ([[error domain] isEqualToString:NSURLErrorDomain] && [error code] == 
NSURLErrorCancelled)
+        return;
+    
     NSString *errorDescription = [error localizedDescription] ?: 
NSLocalizedString(@"An error occured during download.", @"Informative text in 
alert dialog");
     NSAlert *alert = [[NSAlert alloc] init];
     [alert setMessageText:NSLocalizedString(@"Download Failed", @"Message in 
alert dialog when download failed")];

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