mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Do not activate new items when parent widget is inactive
This commit is contained in:
parent
459a6f067b
commit
b0a3f95d20
@ -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…
x
Reference in New Issue
Block a user