Revision: 29568
http://sourceforge.net/p/bibdesk/svn/29568
Author: hofman
Date: 2025-09-09 16:12:21 +0000 (Tue, 09 Sep 2025)
Log Message:
-----------
call block in once place
Modified Paths:
--------------
trunk/bibdesk/BDSKTextImportController.m
Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m 2025-09-09 15:55:48 UTC (rev
29567)
+++ trunk/bibdesk/BDSKTextImportController.m 2025-09-09 16:12:21 UTC (rev
29568)
@@ -1230,14 +1230,13 @@
[sPanel setNameFieldStringValue:destinationName];
[sPanel beginSheetModalForWindow:[self window]
completionHandler:^(NSModalResponse result){
+ NSURL *fileURL = nil;
if (result == NSModalResponseOK) {
- NSURL *fileURL = [sPanel URL];
+ fileURL = [sPanel URL];
if ([fileURL checkResourceIsReachableAndReturnError:NULL])
[[NSFileManager defaultManager] removeItemAtURL:fileURL
error:nil];
- completionHandler(fileURL);
- } else {
- completionHandler(nil);
}
+ completionHandler(fileURL);
}];
}
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