This commit is contained in:
Leonardo Zide 2020-07-25 17:58:17 -07:00
parent e17a5719d9
commit 2f94f2db68

View file

@ -49,8 +49,9 @@ lcQPreferencesDialog::lcQPreferencesDialog(QWidget* Parent, lcPreferencesDialogO
ui->lgeoPath->setText(mOptions->LGEOPath); ui->lgeoPath->setText(mOptions->LGEOPath);
ui->authorName->setText(mOptions->DefaultAuthor); ui->authorName->setText(mOptions->DefaultAuthor);
ui->mouseSensitivity->setValue(mOptions->Preferences.mMouseSensitivity); ui->mouseSensitivity->setValue(mOptions->Preferences.mMouseSensitivity);
QSignalBlocker ColorThemeBlocker(ui->ColorTheme); const bool ColorThemeBlocked = ui->ColorTheme->blockSignals(true);
ui->ColorTheme->setCurrentIndex(static_cast<int>(mOptions->Preferences.mColorTheme)); ui->ColorTheme->setCurrentIndex(static_cast<int>(mOptions->Preferences.mColorTheme));
ui->ColorTheme->blockSignals(ColorThemeBlocked);
for (unsigned int LanguageIdx = 0; LanguageIdx < LC_ARRAY_COUNT(gLanguageLocales); LanguageIdx++) for (unsigned int LanguageIdx = 0; LanguageIdx < LC_ARRAY_COUNT(gLanguageLocales); LanguageIdx++)
{ {
if (mOptions->Language == gLanguageLocales[LanguageIdx]) if (mOptions->Language == gLanguageLocales[LanguageIdx])