diff options
-rw-r--r-- | macosx/Controller.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index b3ab256c0..a999b1526 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -6055,7 +6055,7 @@ the user is using "Custom" settings by determining the sender*/ [panel setCanChooseDirectories: NO ]; NSURL *sourceDirectory; - if ([[NSUserDefaults standardUserDefaults] stringForKey:@"LastSrtImportDirectoryURL"]) + if ([[NSUserDefaults standardUserDefaults] URLForKey:@"LastSrtImportDirectoryURL"]) { sourceDirectory = [[NSUserDefaults standardUserDefaults] URLForKey:@"LastSrtImportDirectoryURL"]; } @@ -6080,7 +6080,7 @@ the user is using "Custom" settings by determining the sender*/ { NSURL *importSrtFileURL = [sheet URL]; NSURL *importSrtDirectory = [importSrtFileURL URLByDeletingLastPathComponent]; - [[NSUserDefaults standardUserDefaults] setObject:importSrtDirectory forKey:@"LastSrtImportDirectoryURL"]; + [[NSUserDefaults standardUserDefaults] setURL:importSrtDirectory forKey:@"LastSrtImportDirectoryURL"]; /* now pass the string off to fSubtitlesDelegate to add the srt file to the dropdown */ [fSubtitlesDelegate createSubtitleSrtTrack:importSrtFileURL]; |