1
0
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:
Ivan Savenko 2023-03-24 18:56:38 +02:00
parent 459a6f067b
commit b0a3f95d20

View File

@ -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;
}