From b5796d5df71d079904c727ef7cc5831b1acf331d Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Wed, 6 May 2015 20:35:03 +0200 Subject: [PATCH] Fix Qt4 build --- src/PreferencesDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PreferencesDialog.cpp b/src/PreferencesDialog.cpp index 838d2689..0f9d8a00 100644 --- a/src/PreferencesDialog.cpp +++ b/src/PreferencesDialog.cpp @@ -84,7 +84,7 @@ void PreferencesDialog::loadSettings() ui->treeSyntaxHighlighting->topLevelItem(i)->setCheckState(5, getSettingsValue("syntaxhighlighter", name + "_underline").toBool() ? Qt::Checked : Qt::Unchecked); } } - ui->comboEditorFont->setCurrentText(getSettingsValue("editor", "font").toString()); + ui->comboEditorFont->setCurrentIndex(ui->comboEditorFont->findText(getSettingsValue("editor", "font").toString())); ui->spinEditorFontSize->setValue(getSettingsValue("editor", "fontsize").toInt()); ui->spinTabSize->setValue(getSettingsValue("editor", "tabsize").toInt()); ui->spinLogFontSize->setValue(getSettingsValue("log", "fontsize").toInt());