From b264ace835d166642f126a366e6fc6e172633c69 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Thu, 29 Apr 2010 08:49:25 +0200 Subject: [PATCH] QmlDesigner.propertyEditor: only select QDeclarativeItems --- .../qmldesigner/components/propertyeditor/propertyeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index e0e0e4c21a5..0586095a8a9 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(); -- GitLab