[vlc-devel] [PATCH 15/18] macosx: don't remove default audio profile

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Tue Jul 4 10:01:14 CEST 2017


---
 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];
-- 
2.13.1



More information about the vlc-devel mailing list