1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix activation of tabs in lobby menu

This commit is contained in:
Ivan Savenko 2024-08-12 18:44:45 +00:00
parent 39d3217d20
commit a7e6d4146e

View File

@ -102,13 +102,12 @@ void CSelectionBase::toggleTab(std::shared_ptr<CIntObject> tab)
{
if(curTab && curTab->isActive())
{
curTab->deactivate();
curTab->recActions = 0;
curTab->disable();
}
if(curTab != tab)
{
tab->activate();
tab->enable();
curTab = tab;
}
else