mirror of
https://github.com/leozide/leocad
synced 2025-01-14 08:01:45 +01:00
Qt4 fix.
This commit is contained in:
parent
e17a5719d9
commit
2f94f2db68
1 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue