Commit 7400ad0a authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Fix invert selection

InvertSelection was not properly implemented.

Change-Id: I101105b33f8e2b9ed7b62a06d6330cbbfd87879a
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 6c5d1aee
......@@ -95,9 +95,13 @@ void SingleSelectionManipulator::select(SelectionType selectionType)
}
break;
case InvertSelection: {
if (selectedNode.isValid()
&& !m_oldSelectionList.contains(selectedNode))
nodeList.append(selectedNode);
nodeList.append(m_oldSelectionList);
if (selectedNode.isValid()) {
if (!m_oldSelectionList.contains(selectedNode))
nodeList.append(selectedNode);
else
nodeList.removeAll(selectedNode);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment