]> git.sesse.net Git - vlc/commitdiff
Qt: avoid a crash on first Startup
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 28 Feb 2010 09:54:30 +0000 (10:54 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 28 Feb 2010 09:58:20 +0000 (10:58 +0100)
modules/gui/qt4/dialogs/firstrun.cpp

index c5bbcf533c59424a25e524a85c18b378d5371e00..088e8ae1b9be2b307802d0e99dde5f656ecd9669 100644 (file)
@@ -42,10 +42,13 @@ FirstRun::FirstRun( QWidget *_p, intf_thread_t *_p_intf  )
 
 #define ALBUM_ART_WHEN_ASKED 0
 #define ALBUM_ART_ALL 2
+
 void FirstRun::save()
 {
     config_PutInt( p_intf,  "album-art", checkbox->isChecked() ? ALBUM_ART_ALL: ALBUM_ART_WHEN_ASKED );
+#ifdef UPDATE_CHECK
     config_PutInt( p_intf,  "qt-updates-notif", checkbox2->isChecked() );
+#endif
     config_PutInt( p_intf,  "qt-privacy-ask", 0 );
 
     /* We have to save here because the user may not launch Prefs */