From 8e1fb45fc9e74b1c3b49f1da110241ce3e3aae66 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Sat, 8 Oct 2016 23:09:00 +0800 Subject: [PATCH] Fix file URL assembling when from preferences --- MacDown/Code/Application/MPMainController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacDown/Code/Application/MPMainController.m b/MacDown/Code/Application/MPMainController.m index 14680ad0..085afe81 100644 --- a/MacDown/Code/Application/MPMainController.m +++ b/MacDown/Code/Application/MPMainController.m @@ -212,7 +212,7 @@ - (void)openPendingFiles NSDocumentController *c = [NSDocumentController sharedDocumentController]; for (NSString *path in self.prefereces.filesToOpenOnNextLaunch) { - NSURL *url = [NSURL URLWithString:path]; + NSURL *url = [NSURL fileURLWithPath:path]; if ([url checkResourceIsReachableAndReturnError:NULL]) { [c openDocumentWithContentsOfURL:url display:YES