summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-03-26 08:27:40 +0100
committerDamiano Galassi <[email protected]>2016-03-26 08:27:40 +0100
commit47c6aefa065c00ffbcbd9b286c8a7aed582f8767 (patch)
treef319faba4a2b5c6e7631e5f97f994869fcd123a7 /macosx/HBController.m
parentac3d9b20c9a1b230f61d7128cd02bbd9a3d5bc1e (diff)
MacGui: fix the 'scan only title' option.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m10
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];
}
}];