diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index e0e0e4c21a5e80e7603404106adda5affc98fc9d..0586095a8a9615aec60d561372e42d82104ad501 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
@@ -803,7 +803,7 @@ void PropertyEditor::nodeIdChanged(const ModelNode& node, const QString& newId,
 
 void PropertyEditor::select(const ModelNode &node)
 {
-    if (node.isValid())
+    if (QmlItemNode(node).isValid())
         m_selectedNode = node;
     else
         m_selectedNode = ModelNode();