diff options
author | Damiano Galassi <[email protected]> | 2016-03-26 08:27:40 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-03-26 08:27:40 +0100 |
commit | 47c6aefa065c00ffbcbd9b286c8a7aed582f8767 (patch) | |
tree | f319faba4a2b5c6e7631e5f97f994869fcd123a7 /macosx/HBController.m | |
parent | ac3d9b20c9a1b230f61d7128cd02bbd9a3d5bc1e (diff) |
MacGui: fix the 'scan only title' option.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index c7faf6257..ab33ad5fe 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -312,6 +312,14 @@ return contentSize; } +- (void)setNilValueForKey:(NSString *)key +{ + if ([key isEqualToString:@"scanSpecificTitleIdx"]) + { + [self setValue:@0 forKey:key]; + } +} + #pragma mark - UI Validation - (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem @@ -778,7 +786,7 @@ [[NSUserDefaults standardUserDefaults] setURL:panel.URL.URLByDeletingLastPathComponent forKey:@"HBLastSourceDirectoryURL"]; } - NSInteger titleIdx = self.scanSpecificTitle ? self.scanSpecificTitle : 0; + NSInteger titleIdx = self.scanSpecificTitle ? self.scanSpecificTitleIdx : 0; [self openURL:panel.URL titleIndex:titleIdx]; } }]; |