[vlc-commits] macosx: Clean up potentially old update URL

David Fuhrmann git at videolan.org
Wed May 1 23:02:36 CEST 2019


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Feb 17 21:35:31 2019 +0100| [1585b2909777901080875c4422ae1c0eec6d5b1b] | committer: David Fuhrmann

macosx: Clean up potentially old update URL

(cherry picked from commit 9259e320099bafe5da2a6d45be5b02e269dce313)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1585b2909777901080875c4422ae1c0eec6d5b1b
---

 modules/gui/macosx/VLCMain+OldPrefs.m | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/macosx/VLCMain+OldPrefs.m b/modules/gui/macosx/VLCMain+OldPrefs.m
index 7e28d17c79..a99ca3d879 100644
--- a/modules/gui/macosx/VLCMain+OldPrefs.m
+++ b/modules/gui/macosx/VLCMain+OldPrefs.m
@@ -61,6 +61,11 @@ static const int kCurrentPreferencesVersion = 4;
     NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
     int 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