Qt: Fix default-true checkboxes
Vicki Pfau vi@endrift.com
Thu, 07 Sep 2017 22:05:39 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/SettingsView.cpp
→
src/platform/qt/SettingsView.cpp
@@ -533,7 +533,7 @@ }
void SettingsView::loadSetting(const char* key, QAbstractButton* field, bool defaultVal) { QString option = loadSetting(key); - field->setChecked((!option.isNull() && option != "0") || defaultVal); + field->setChecked(option.isNull() ? defaultVal : option != "0"); } void SettingsView::loadSetting(const char* key, QComboBox* field) {