vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuf...@gmail.com> | Mon Jul 3 21:55:28 2017 +0200| [9a5a83fb0fed98c02657ed4601559b1d3696bd34] | committer: Jean-Baptiste Kempf
macosx: don't remove default audio profile Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a5a83fb0fed98c02657ed4601559b1d3696bd34 --- modules/gui/macosx/VLCAudioEffectsWindowController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui/macosx/VLCAudioEffectsWindowController.m b/modules/gui/macosx/VLCAudioEffectsWindowController.m index 77aa5430b4..6d707eaf49 100644 --- a/modules/gui/macosx/VLCAudioEffectsWindowController.m +++ b/modules/gui/macosx/VLCAudioEffectsWindowController.m @@ -447,6 +447,11 @@ return; } + if (!selectedIndex) { // TODO: add popup to notify user + [_profilePopup selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]]; + return; + } + /* remove selected profile from settings */ NSMutableArray *workArray = [[NSMutableArray alloc] initWithArray:[defaults objectForKey:@"AudioEffectProfiles"]]; [workArray removeObjectAtIndex:selectedIndex]; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits