1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Give background_type a default value, as some compilers sometimes wrongly assume that it might be used uninitialized

This commit is contained in:
Arnaud Bienner 2012-03-17 13:34:29 +01:00
parent e9378e0a9a
commit 9dff2dd0b1

View File

@ -978,7 +978,7 @@ void PlaylistView::ReloadSettings() {
// Background:
QVariant q_playlistview_background_type = s.value(kSettingBackgroundImageType);
BackgroundImageType background_type;
BackgroundImageType background_type(Default);
// bg_enabled should also be checked for backward compatibility (in releases
// <= 1.0, there was just a boolean to activate/deactivate the background)
QVariant bg_enabled = s.value("bg_enabled");