Fix asm.var.sub* fetching in AsmOptionsWidget

This commit is contained in:
Florian Märkl 2018-10-12 11:02:00 +02:00
parent ea1080f412
commit a73492a718

View File

@ -93,9 +93,9 @@ void AsmOptionsWidget::updateAsmOptionsFromVars()
qhelpers::setCheckedWithoutSignals(ui->bblineCheckBox, Config()->getConfigBool("asm.bbline")); qhelpers::setCheckedWithoutSignals(ui->bblineCheckBox, Config()->getConfigBool("asm.bbline"));
bool varsubEnabled = Config()->getConfigBool("asm.varsub"); bool varsubEnabled = Config()->getConfigBool("asm.var.sub");
qhelpers::setCheckedWithoutSignals(ui->varsubCheckBox, varsubEnabled); qhelpers::setCheckedWithoutSignals(ui->varsubCheckBox, varsubEnabled);
qhelpers::setCheckedWithoutSignals(ui->varsubOnlyCheckBox, Config()->getConfigBool("asm.varsub_only")); qhelpers::setCheckedWithoutSignals(ui->varsubOnlyCheckBox, Config()->getConfigBool("asm.var.subonly"));
ui->varsubOnlyCheckBox->setEnabled(varsubEnabled); ui->varsubOnlyCheckBox->setEnabled(varsubEnabled);
} }