[vlc-devel] [PATCH 07/18] macosx: don't remove default video profile
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Jul 4 10:01:06 CEST 2017
---
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];
--
2.13.1
More information about the vlc-devel
mailing list