Skip to content

Commit

Permalink
Fix file URL assembling when from preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Oct 8, 2016
1 parent cba8516 commit 8e1fb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MacDown/Code/Application/MPMainController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e1fb45

Please sign in to comment.