Revision: 22795
          http://sourceforge.net/p/bibdesk/svn/22795
Author:   hofman
Date:     2018-10-11 11:49:38 +0000 (Thu, 11 Oct 2018)
Log Message:
-----------
allow file URLs in relative file command

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

Modified: trunk/bibdesk/BDSKFileURLCommand.m
===================================================================
--- trunk/bibdesk/BDSKFileURLCommand.m  2018-10-11 11:46:32 UTC (rev 22794)
+++ trunk/bibdesk/BDSKFileURLCommand.m  2018-10-11 11:49:38 UTC (rev 22795)
@@ -96,6 +96,8 @@
     }
     if ([relativePath hasPrefix:@"~"])
         return  [NSURL fileURLWithPath:[relativePath 
stringByExpandingTildeInPath]];
+    if ([relativePath hasCaseInsensitivePrefix:@"file://"])
+        return [NSURL URLWithString:relativePath];
     if ([relativePath isAbsolutePath])
         return  [NSURL fileURLWithPath:relativePath];
     BOOL isDir = YES;

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to