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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user