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 | |
parent | ac3d9b20c9a1b230f61d7128cd02bbd9a3d5bc1e (diff) |
MacGui: fix the 'scan only title' option.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/English.lproj/MainWindow.xib | 6 | ||||
-rw-r--r-- | macosx/HBController.m | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/macosx/English.lproj/MainWindow.xib b/macosx/English.lproj/MainWindow.xib index 7a6ece483..ba948c027 100644 --- a/macosx/English.lproj/MainWindow.xib +++ b/macosx/English.lproj/MainWindow.xib @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9531" systemVersion="15C50" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> +<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> <dependencies> <deployment identifier="macosx"/> <development version="7000" identifier="xcode"/> - <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9531"/> + <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="10116"/> </dependencies> <objects> <customObject id="-2" userLabel="File's Owner" customClass="HBController"> @@ -703,7 +703,7 @@ IA <rect key="frame" x="148" y="7" width="50" height="22"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" title="0" drawsBackground="YES" id="6E4-AG-PEh"> - <numberFormatter key="formatter" formatterBehavior="default10_4" usesGroupingSeparator="NO" minimumIntegerDigits="0" maximumIntegerDigits="42" id="V1R-X1-vLz"> + <numberFormatter key="formatter" formatterBehavior="default10_4" usesGroupingSeparator="NO" groupingSize="0" minimumIntegerDigits="0" maximumIntegerDigits="42" id="WUJ-g0-wrL"> <real key="minimum" value="0.0"/> </numberFormatter> <font key="font" metaFont="system"/> 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]; } }]; |