]> git.sesse.net Git - vlc/commitdiff
macosx: Set the pref version key if the ignore button was pressed.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 16 Sep 2008 06:53:44 +0000 (08:53 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 16 Sep 2008 06:54:43 +0000 (08:54 +0200)
So that the dialog won't pop up again.

modules/gui/macosx/intf.m

index 1d5d36dd3f427679adfd0885a0088065d40f1774..4019bce57233589029178e89db27e7f20351bd9c 100644 (file)
@@ -2252,7 +2252,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"];