1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +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:
Ivan Savenko
2023-03-25 20:02:46 +02:00
committed by GitHub

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