mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Merge pull request #1762 from IvanSavenko/reactivation_fix
Do not activate new items when parent widget is inactive
This commit is contained in:
commit
382fbf423d
@ -35,7 +35,8 @@ std::shared_ptr<CIntObject> CObjectList::createItem(size_t index)
|
||||
|
||||
item->recActions = defActions;
|
||||
addChild(item.get());
|
||||
item->activate();
|
||||
if (active)
|
||||
item->activate();
|
||||
return item;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user