[vlc-commits] macosx: Clean up potentially old update URL
David Fuhrmann
git at videolan.org
Sat Mar 16 21:38:53 CET 2019
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Feb 17 21:35:31 2019 +0100| [9259e320099bafe5da2a6d45be5b02e269dce313] | committer: David Fuhrmann
macosx: Clean up potentially old update URL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9259e320099bafe5da2a6d45be5b02e269dce313
---
modules/gui/macosx/main/VLCMain+OldPrefs.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/gui/macosx/main/VLCMain+OldPrefs.m b/modules/gui/macosx/main/VLCMain+OldPrefs.m
index c84ab43cc8..9f57712e5d 100644
--- a/modules/gui/macosx/main/VLCMain+OldPrefs.m
+++ b/modules/gui/macosx/main/VLCMain+OldPrefs.m
@@ -63,6 +63,11 @@ static const int kCurrentPreferencesVersion = 4;
NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
NSInteger version = [defaults integerForKey:kVLCPreferencesVersion];
+ // This was set in user defaults in VLC 2.0.x (preferences version 2), overriding any
+ // value in the Info.plist. Make sure to delete it here, always,
+ // as it could be set if an old version of VLC is launched again.
+ [defaults removeObjectForKey:@"SUFeedURL"];
+
/*
* Store version explicitely in file, for ease of debugging.
* Otherwise, the value will be just defined at app startup,
More information about the vlc-commits
mailing list