diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-14 21:40:36 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-14 21:40:36 +0100 |
| commit | 186e96c878c432914f4f3b9e73a28b0b96103d3d (patch) | |
| tree | 56b1b8bcd46ab096ea7e0c9a60eabd0bade21275 /src | |
| parent | aa1ffe65a7dcc7b2a0dcc4eaa49493085015db8d (diff) | |
Fix disabling of collapsible separators settings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/settingsdialog.ui | 4 | ||||
| -rw-r--r-- | src/settingsdialoguserinterface.cpp | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/settingsdialog.ui b/src/settingsdialog.ui index 93934fc1..f6368ff7 100644 --- a/src/settingsdialog.ui +++ b/src/settingsdialog.ui @@ -313,7 +313,7 @@ If you disable this feature, MO will only display official DLCs this way. Please </property> <layout class="QGridLayout" name="gridLayout_7"> <item row="0" column="0"> - <widget class="QWidget" name="widget_11" native="true"> + <widget class="QWidget" name="collapsibleSeparatorsWidget" native="true"> <property name="minimumSize"> <size> <width>0</width> @@ -339,7 +339,7 @@ If you disable this feature, MO will only display official DLCs this way. Please <number>9</number> </property> <item row="0" column="0"> - <widget class="QLabel" name="label_18"> + <widget class="QLabel" name="collapsibleSeparatorsLabel"> <property name="text"> <string>When sorting by</string> </property> diff --git a/src/settingsdialoguserinterface.cpp b/src/settingsdialoguserinterface.cpp index ca040315..6ccea300 100644 --- a/src/settingsdialoguserinterface.cpp +++ b/src/settingsdialoguserinterface.cpp @@ -76,7 +76,10 @@ void UserInterfaceSettingsTab::updateCollapsibleSeparatorsGroup() { const auto checked = ui->collapsibleSeparatorsAscBox->isChecked() || ui->collapsibleSeparatorsDscBox->isChecked(); - for (auto* checkbox : ui->collapsibleSeparatorsBox->findChildren<QCheckBox*>()) { - checkbox->setEnabled(checked); + for (auto* widget : ui->collapsibleSeparatorsWidget->findChildren<QWidget*>()) { + widget->setEnabled(checked); } + ui->collapsibleSeparatorsLabel->setEnabled(true); + ui->collapsibleSeparatorsAscBox->setEnabled(true); + ui->collapsibleSeparatorsDscBox->setEnabled(true); } |
