diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index 38cc089edb4..ddb3428c46a 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp @@ -385,12 +385,9 @@ void PropertyEditor::selectedNodesChanged(const QList &selectedNodeLi { Q_UNUSED(lastSelectedNodeList); - if (m_selectedNode.isValid() && selectedNodeList.contains(m_selectedNode)) - return; - - if (selectedNodeList.isEmpty()) + if (selectedNodeList.isEmpty() || selectedNodeList.count() > 1) select(ModelNode()); - else + else if (m_selectedNode != selectedNodeList.first()) select(selectedNodeList.first()); }