Revision: 13441
          http://sourceforge.net/p/skim-app/code/13441
Author:   hofman
Date:     2023-05-11 15:42:12 +0000 (Thu, 11 May 2023)
Log Message:
-----------
avoid warning

Modified Paths:
--------------
    trunk/SKBookmarkController.m

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2023-05-11 15:30:30 UTC (rev 13440)
+++ trunk/SKBookmarkController.m        2023-05-11 15:42:12 UTC (rev 13441)
@@ -578,11 +578,11 @@
 
 - (IBAction)chooseFile:(id)sender {
     SKBookmark *bm = [[self clickedBookmarks] firstObject];
-    NSURL *fileURL = [bm fileURL];
+    NSURL *oldURL = [bm fileURL];
     NSOpenPanel *oPanel = [NSOpenPanel openPanel];
     [oPanel setAllowedFileTypes:@[SKPDFDocumentType, SKPDFBundleDocumentType, 
SKPostScriptDocumentType, SKEncapsulatedPostScriptDocumentType, 
SKDVIDocumentType, SKXDVDocumentType, SKNotesDocumentType]];
-    if (fileURL)
-        [oPanel setDirectoryURL:[fileURL URLByDeletingLastPathComponent]];
+    if (oldURL)
+        [oPanel setDirectoryURL:[oldURL URLByDeletingLastPathComponent]];
     [oPanel beginSheetModalForWindow:[self window] 
completionHandler:^(NSInteger result){
             if (result == NSModalResponseOK) {
                 NSURL *fileURL = [[oPanel URLs] firstObject];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to