summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-10 13:59:14 +0100
committerDamiano Galassi <[email protected]>2017-11-10 13:59:14 +0100
commit69e4867fd92921d911b1b288bc3c00de9772c356 (patch)
tree24fbc18f3d7320fec745416d8986b93e9c2caeff /macosx/HBController.m
parent1f7aeb62b9ac51132fddc260e4193e07f056ed2f (diff)
MacGui: add a popup menu to select the category in the add preset sheet.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m
index c2b7b3caf..3a7105b2c 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -1424,6 +1424,7 @@
// Show the add panel
HBAddPresetController *addPresetController = [[HBAddPresetController alloc] initWithPreset:[self createPresetFromCurrentSettings]
+ presetManager:presetManager
customWidth:self.job.picture.width
customHeight:self.job.picture.height
defaultToCustom:defaultToCustom];
@@ -1433,12 +1434,7 @@
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
- HBAddPresetController *addPresetController = (HBAddPresetController *)CFBridgingRelease(contextInfo);
-
- if (returnCode == NSModalResponseContinue)
- {
- [presetManager addPreset:addPresetController.preset];
- }
+ __unused HBAddPresetController *addPresetController = (HBAddPresetController *)CFBridgingRelease(contextInfo);
}
- (HBPreset *)createPresetFromCurrentSettings