forked from qt-creator/qt-creator
QmlDesigner.propertyEditor: disable property editor for multiple selection
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user