1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

clears and disables filter if customized spells unchecked

This commit is contained in:
Opuszek
2025-07-25 21:01:42 +02:00
parent 49a0545e40
commit dbbe2f244c

View File

@@ -99,6 +99,8 @@ void HeroSpellWidget::on_customizeSpells_toggled(bool checked)
hero.removeSpellFromSpellbook(SpellID::PRESET);
hero.removeSpellbook();
}
ui->filter->clear();
ui->filter->setEnabled(checked);
ui->tabWidget->setEnabled(checked);
initSpellLists();
}