diff options
-rw-r--r-- | src/plugins/qmldesigner/designercore/model/qmlmodelview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/designercore/model/qmlmodelview.cpp b/src/plugins/qmldesigner/designercore/model/qmlmodelview.cpp index 0f9edd2c7d..e2b9eb1bd8 100644 --- a/src/plugins/qmldesigner/designercore/model/qmlmodelview.cpp +++ b/src/plugins/qmldesigner/designercore/model/qmlmodelview.cpp @@ -168,7 +168,7 @@ QmlItemNode QmlModelView::createQmlItemNode(const ItemLibraryEntry &itemLibraryE QmlItemNode newNode; RewriterTransaction transaction = beginRewriterTransaction(); { - if (itemLibraryEntry.typeName().contains('.')) { + if (itemLibraryEntry.typeName().contains('/')) { const QString newImportUrl = itemLibraryEntry.typeName().split('/').first(); const QString newImportVersion = QString("%1.%2").arg(QString::number(itemLibraryEntry.majorVersion()), QString::number(itemLibraryEntry.minorVersion())); Import newImport = Import::createLibraryImport(newImportUrl, newImportVersion); |