[vlc-commits] macosx: don't remove default video profile
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:25:31 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at 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 <jb at 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];
More information about the vlc-commits
mailing list