[vlc-devel] commit: macosx: Set the pref version key if the ignore button was pressed. (Pierre d'Herbemont )

git version control git at videolan.org
Tue Sep 16 15:28:03 CEST 2008


vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Sep 16 08:53:44 2008 +0200| [2d1bd87ee78854b06b90388535b24523c3c82c57] | committer: Felix Paul Kühne 

macosx: Set the pref version key if the ignore button was pressed.

So that the dialog won't pop up again.

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d1bd87ee78854b06b90388535b24523c3c82c57
---

 modules/gui/macosx/intf.m |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 4a46762..fd2fbec 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2241,7 +2241,11 @@ end:
     int res = NSRunInformationalAlertPanel(_NS("Remove old preferences?"),
                 _NS("We just found an older version of VLC's preferences files."),
                 _NS("Move To Trash and Relaunch VLC"), _NS("Ignore"), nil, nil);
-    if( res != NSOKButton ) return;
+    if( res != NSOKButton )
+    {
+        [[NSUserDefaults standardUserDefaults] setInteger:kCurrentPreferencesVersion forKey:kVLCPreferencesVersion];
+        return;
+    }
 
     NSArray * ourPreferences = [NSArray arrayWithObjects:@"org.videolan.vlc.plist", @"VLC"];
 




More information about the vlc-devel mailing list