1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Merge pull request #4442 from IvanSavenko/lobby_tabs_fix

Fix activation of tabs in lobby menu
This commit is contained in:
Ivan Savenko 2024-08-12 22:03:55 +03:00 committed by GitHub
commit 812f8d993b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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