summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompileddata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlcompileddata.cpp')
-rw-r--r--src/declarative/qml/qmlcompileddata.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/declarative/qml/qmlcompileddata.cpp b/src/declarative/qml/qmlcompileddata.cpp
index 0563891..ffb89b3 100644
--- a/src/declarative/qml/qmlcompileddata.cpp
+++ b/src/declarative/qml/qmlcompileddata.cpp
@@ -170,12 +170,7 @@ QObject *QmlCompiledData::TypeReference::createInstance(QmlContext *ctxt) const
return rv;
} else {
Q_ASSERT(component);
- QObject *rv = component->create(ctxt);
- QmlContext *ctxt = qmlContext(rv);
- if(ctxt) {
- static_cast<QmlContextPrivate *>(QObjectPrivate::get(ctxt))->typeName = className;
- }
- return rv;
+ return component->create(ctxt);
}
}