all repos — mgba @ 076ec733fd4f8f220027bcea001f8d6367915a4a

mGBA Game Boy Advance Emulator

Qt: Fix default-true checkboxes
Vicki Pfau vi@endrift.com
Thu, 07 Sep 2017 22:05:39 -0700
commit

076ec733fd4f8f220027bcea001f8d6367915a4a

parent

b750c76d02af94646309a700c86c04faf6707b7d

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/SettingsView.cppsrc/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) {