[vlc-commits] macosx: don't remove default audio profile

Victorien Le Couviour--Tuffet git at videolan.org
Thu Jul 13 11:26:06 CEST 2017


vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at 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 <jb at 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];



More information about the vlc-commits mailing list