diff options
-rw-r--r-- | macosx/HBController.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index ee452bf97..15ea6bd07 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -1499,6 +1499,13 @@ - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo { __unused HBAddPresetController *addPresetController = (HBAddPresetController *)CFBridgingRelease(contextInfo); + + if (returnCode == NSModalResponseContinue) + { + fPresetsView.selectedPreset = addPresetController.preset; + [self applyPreset:fPresetsView.selectedPreset]; + [[NSNotificationCenter defaultCenter] postNotificationName:HBPresetsChangedNotification object:nil]; + } } - (HBPreset *)createPresetFromCurrentSettings |