1
0
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:
Ivan Savenko 2023-03-25 20:02:46 +02:00 committed by GitHub
commit 382fbf423d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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