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

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


---
 modules/gui/macosx/VLCAudioEffectsWindowController.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCAudioEffectsWindowController.m b/modules/gui/macosx/VLCAudioEffectsWindowController.m
index 4b51c69791..77aa5430b4 100644
--- a/modules/gui/macosx/VLCAudioEffectsWindowController.m
+++ b/modules/gui/macosx/VLCAudioEffectsWindowController.m
@@ -346,7 +346,7 @@
 
 - (void)saveCurrentProfile
 {
-    if (i_old_profile_index == -1)
+    if (!i_old_profile_index || i_old_profile_index == -1)
         return;
 
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
-- 
2.13.1



More information about the vlc-devel mailing list