vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuf...@gmail.com> | Sun Jul 2 15:21:00 2017 +0200| [2524071d8bdf2ed7544d3c7abbfe5155e8c6408f] | committer: Jean-Baptiste Kempf
macosx: don't remove default video profile Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2524071d8bdf2ed7544d3c7abbfe5155e8c6408f --- modules/gui/macosx/VLCVideoEffectsWindowController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m index 2686f745e2..b6b3bf955e 100644 --- a/modules/gui/macosx/VLCVideoEffectsWindowController.m +++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m @@ -789,6 +789,11 @@ return; } + if (!selectedIndex) { // TODO: add popup to notify user + [_profilePopup selectItemAtIndex:[defaults integerForKey:@"VideoEffectSelectedProfile"]]; + return; + } + /* remove selected profile from settings */ NSMutableArray *workArray = [[NSMutableArray alloc] initWithArray: [defaults objectForKey:@"VideoEffectProfiles"]]; [workArray removeObjectAtIndex:selectedIndex]; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits