From: Bradley Sepos Date: Sat, 17 Mar 2018 22:16:20 +0000 (-0400) Subject: MacGUI: Select newly saved preset on creation. X-Git-Tag: 1.1.0~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01f2a82b199e5bb659f9f3ae66c555eac7acfae3;p=handbrake MacGUI: Select newly saved preset on creation. --- 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