Do not re-enable Aspects in AspectContainer::registerAspect

Change-Id: I36e13edb97094c401be9c52766cd6ed0feafe021
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Andrii Batyiev
2024-10-24 13:17:43 +03:00
parent 5354e7e557
commit a5a8450edc

View File

@@ -3194,7 +3194,7 @@ void AspectContainer::registerAspect(BaseAspect *aspect, bool takeOwnership)
{
aspect->setContainer(this);
aspect->setAutoApply(isAutoApply());
aspect->setEnabled(isEnabled());
aspect->setEnabled(aspect->isEnabled() && isEnabled());
d->m_items.append(aspect);
if (takeOwnership)
d->m_ownedItems.append(aspect);