[vlc-commits] macosx: don't save default audio profile
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:26:01 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jul 3 21:53:48 2017 +0200| [e3b9aaa21e72fe0efa6efc2feb00ff9d5fc7e717] | committer: Jean-Baptiste Kempf
macosx: don't save default audio profile
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3b9aaa21e72fe0efa6efc2feb00ff9d5fc7e717
---
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];
More information about the vlc-commits
mailing list