From 18ed1a8922ec552d8aeb7b98f192600065ecfdd7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sun, 28 Feb 2010 10:54:30 +0100 Subject: [PATCH] Qt: avoid a crash on first Startup --- modules/gui/qt4/dialogs/firstrun.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gui/qt4/dialogs/firstrun.cpp b/modules/gui/qt4/dialogs/firstrun.cpp index c5bbcf533c..088e8ae1b9 100644 --- a/modules/gui/qt4/dialogs/firstrun.cpp +++ b/modules/gui/qt4/dialogs/firstrun.cpp @@ -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 */ -- 2.39.2