diff --git a/src/Preferences.cc b/src/Preferences.cc index efa96448..3db85d2b 100644 --- a/src/Preferences.cc +++ b/src/Preferences.cc @@ -504,6 +504,7 @@ void Preferences::on_comboBoxLineWrap_activated(int val) void Preferences::on_comboBoxLineWrapIndentationStyle_activated(int val) { + spinBoxLineWrapIndentationIndent->setDisabled(comboBoxLineWrapIndentationStyle->currentText() == "Same"); applyComboBox(comboBoxLineWrapIndentationStyle, val, Settings::Settings::lineWrapIndentationStyle); } @@ -689,7 +690,8 @@ void Preferences::updateGUI() this->checkBoxHighlightCurrentLine->setChecked(s->get(Settings::Settings::highlightCurrentLine).toBool()); this->checkBoxEnableBraceMatching->setChecked(s->get(Settings::Settings::enableBraceMatching).toBool()); this->checkBoxShowWarningsIn3dView->setChecked(s->get(Settings::Settings::showWarningsIn3dView).toBool()); - this->checkBoxEnableLineNumbers->setChecked(s->get(Settings::Settings::enableLineNumbers).toBool()); + this->checkBoxEnableLineNumbers->setChecked(s->get(Settings::Settings::enableLineNumbers).toBool()); + this->spinBoxLineWrapIndentationIndent->setDisabled(this->comboBoxLineWrapIndentationStyle->currentText() == "Same"); } void Preferences::initComboBox(QComboBox *comboBox, const Settings::SettingsEntry& entry)