mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Merge pull request #4442 from IvanSavenko/lobby_tabs_fix
Fix activation of tabs in lobby menu
This commit is contained in:
commit
812f8d993b
@ -102,13 +102,12 @@ void CSelectionBase::toggleTab(std::shared_ptr<CIntObject> tab)
|
|||||||
{
|
{
|
||||||
if(curTab && curTab->isActive())
|
if(curTab && curTab->isActive())
|
||||||
{
|
{
|
||||||
curTab->deactivate();
|
curTab->disable();
|
||||||
curTab->recActions = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(curTab != tab)
|
if(curTab != tab)
|
||||||
{
|
{
|
||||||
tab->activate();
|
tab->enable();
|
||||||
curTab = tab;
|
curTab = tab;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user