forked from qt-creator/qt-creator
Do not re-enable Aspects in AspectContainer::registerAspect
Change-Id: I36e13edb97094c401be9c52766cd6ed0feafe021 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -3194,7 +3194,7 @@ void AspectContainer::registerAspect(BaseAspect *aspect, bool takeOwnership)
|
|||||||
{
|
{
|
||||||
aspect->setContainer(this);
|
aspect->setContainer(this);
|
||||||
aspect->setAutoApply(isAutoApply());
|
aspect->setAutoApply(isAutoApply());
|
||||||
aspect->setEnabled(isEnabled());
|
aspect->setEnabled(aspect->isEnabled() && isEnabled());
|
||||||
d->m_items.append(aspect);
|
d->m_items.append(aspect);
|
||||||
if (takeOwnership)
|
if (takeOwnership)
|
||||||
d->m_ownedItems.append(aspect);
|
d->m_ownedItems.append(aspect);
|
||||||
|
Reference in New Issue
Block a user