From 78a798eef3eb8d04360c6d9542db55469f59cacd Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Tue, 7 Feb 2017 18:54:40 +0100 Subject: [PATCH] Old Qt: Another build fix --- src/gui/generalsettings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index c4474b5e2..9a9722a48 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -104,7 +104,11 @@ QSize GeneralSettings::sizeHint() const { void GeneralSettings::loadMiscSettings() { +#if QT_VERSION < QT_VERSION_CHECK( 5, 4, 0 ) + QScopedValueRollback scope(_currentlyLoading); +#else QScopedValueRollback scope(_currentlyLoading, true); +#endif ConfigFile cfgFile; _ui->monoIconsCheckBox->setChecked(cfgFile.monoIcons()); _ui->desktopNotificationsCheckBox->setChecked(cfgFile.optionalDesktopNotifications());