Commit 18ed1a89 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: avoid a crash on first Startup

parent a278cc95
...@@ -42,10 +42,13 @@ FirstRun::FirstRun( QWidget *_p, intf_thread_t *_p_intf ) ...@@ -42,10 +42,13 @@ FirstRun::FirstRun( QWidget *_p, intf_thread_t *_p_intf )
#define ALBUM_ART_WHEN_ASKED 0 #define ALBUM_ART_WHEN_ASKED 0
#define ALBUM_ART_ALL 2 #define ALBUM_ART_ALL 2
void FirstRun::save() void FirstRun::save()
{ {
config_PutInt( p_intf, "album-art", checkbox->isChecked() ? ALBUM_ART_ALL: ALBUM_ART_WHEN_ASKED ); 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() ); config_PutInt( p_intf, "qt-updates-notif", checkbox2->isChecked() );
#endif
config_PutInt( p_intf, "qt-privacy-ask", 0 ); config_PutInt( p_intf, "qt-privacy-ask", 0 );
/* We have to save here because the user may not launch Prefs */ /* We have to save here because the user may not launch Prefs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment