From 48dee2d59d926b7d59e4df92a83db2550d4dbe49 Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 16 Feb 2010 12:38:23 +0100
Subject: [PATCH] QmlDesigner.propertyEditor: disable property editor for
 multiple selection

---
 .../components/propertyeditor/propertyeditor.cpp           | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

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<ModelNode> &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());
 }
 
-- 
GitLab