diff options
author | Damiano Galassi <[email protected]> | 2017-01-02 14:38:51 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-01-02 14:38:51 +0100 |
commit | d6d633ac7b386b9c0ca70efa0ba93fcd45221d08 (patch) | |
tree | ff02735e3ab2873d0f0697b2f8c9fdca36dd76d5 /macosx | |
parent | 2e1ee72df99040481cc555c4452b08956e0037eb (diff) |
MacGui: always use the last selected source parent directory for the open panel.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBController.m | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index ae165cd34..4a7605c61 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -786,19 +786,8 @@ { if (result == NSFileHandlingPanelOKButton) { - // Check if we selected a folder or not - id outValue = nil; - [panel.URL getResourceValue:&outValue forKey:NSURLIsDirectoryKey error:NULL]; - - // we set the last searched source directory in the prefs here - if ([outValue boolValue]) - { - [[NSUserDefaults standardUserDefaults] setURL:panel.URL forKey:@"HBLastSourceDirectoryURL"]; - } - else - { - [[NSUserDefaults standardUserDefaults] setURL:panel.URL.URLByDeletingLastPathComponent forKey:@"HBLastSourceDirectoryURL"]; - } + // Set the last searched source directory in the prefs here + [[NSUserDefaults standardUserDefaults] setURL:panel.URL.URLByDeletingLastPathComponent forKey:@"HBLastSourceDirectoryURL"]; NSInteger titleIdx = self.scanSpecificTitle ? self.scanSpecificTitleIdx : 0; [self openURL:panel.URL titleIndex:titleIdx]; |