diff options
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r-- | macosx/HBController.m | 8 |
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 |