[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 08:51:22 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Sep 16 08:53:44 2008 +0200| [674e138bbe726faebc35d8814b2e9f0e1097e168] | committer: Pierre d'Herbemont
macosx: Set the pref version key if the ignore button was pressed.
So that the dialog won't pop up again.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=674e138bbe726faebc35d8814b2e9f0e1097e168
---
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 1d5d36d..4019bce 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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"];
More information about the vlc-devel
mailing list