From 2f94f2db683097ff2d0e7ae1f109300649d20b8d Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 25 Jul 2020 17:58:17 -0700 Subject: [PATCH] Qt4 fix. --- qt/lc_qpreferencesdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/lc_qpreferencesdialog.cpp b/qt/lc_qpreferencesdialog.cpp index 3960bcc1..8a640790 100644 --- a/qt/lc_qpreferencesdialog.cpp +++ b/qt/lc_qpreferencesdialog.cpp @@ -49,8 +49,9 @@ lcQPreferencesDialog::lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogO ui->lgeoPath->setText(mOptions->LGEOPath); ui->authorName->setText(mOptions->DefaultAuthor); ui->mouseSensitivity->setValue(mOptions->Preferences.mMouseSensitivity); - QSignalBlocker ColorThemeBlocker(ui->ColorTheme); + const bool ColorThemeBlocked = ui->ColorTheme->blockSignals(true); ui->ColorTheme->setCurrentIndex(static_cast(mOptions->Preferences.mColorTheme)); + ui->ColorTheme->blockSignals(ColorThemeBlocked); for (unsigned int LanguageIdx = 0; LanguageIdx < LC_ARRAY_COUNT(gLanguageLocales); LanguageIdx++) { if (mOptions->Language == gLanguageLocales[LanguageIdx])