QmlDesigner.propertyEditor: disable property editor for multiple selection

This commit is contained in:
Thomas Hartmann
2010-02-16 12:38:23 +01:00
parent ec01f530a9
commit 48dee2d59d

View File

@@ -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());
}