mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Fix activation of tabs in lobby menu
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user