aboutsummaryrefslogtreecommitdiffstats
path: root/tools/shared/scopetree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared/scopetree.cpp')
-rw-r--r--tools/shared/scopetree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared/scopetree.cpp b/tools/shared/scopetree.cpp
index 6cbabf4b51..4d02c67491 100644
--- a/tools/shared/scopetree.cpp
+++ b/tools/shared/scopetree.cpp
@@ -167,7 +167,7 @@ void ScopeTree::updateParentProperty(const ScopeTree::ConstPtr &scope)
{
auto it = m_properties.find(QLatin1String("parent"));
if (it != m_properties.end()
- && scope->internalName() != QLatin1String("Component")
+ && scope->baseTypeName() != QLatin1String("Component")
&& scope->internalName() != QLatin1String("program"))
it->setType(scope);
}