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);
|
Q_UNUSED(lastSelectedNodeList);
|
||||||
|
|
||||||
if (m_selectedNode.isValid() && selectedNodeList.contains(m_selectedNode))
|
if (selectedNodeList.isEmpty() || selectedNodeList.count() > 1)
|
||||||
return;
|
|
||||||
|
|
||||||
if (selectedNodeList.isEmpty())
|
|
||||||
select(ModelNode());
|
select(ModelNode());
|
||||||
else
|
else if (m_selectedNode != selectedNodeList.first())
|
||||||
select(selectedNodeList.first());
|
select(selectedNodeList.first());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user