Skip to content
Snippets Groups Projects
Commit 35aca5b7 authored by Pierre Lamot's avatar Pierre Lamot
Browse files

qml: right clicking selected items in table view should not reset selection

parent bfacb150
Branches native_menus
No related tags found
No related merge requests found
......@@ -221,9 +221,11 @@ NavigableFocusScope {
acceptedButtons: Qt.RightButton | Qt.LeftButton
onClicked: {
selectionDelegateModel.updateSelection( mouse.modifiers , view.currentIndex, index)
view.currentIndex = rowModel.index
lineView.forceActiveFocus()
if (mouse.button === Qt.LeftButton || !selectionDelegateModel.isSelected(root.model.index(index, 0))) {
selectionDelegateModel.updateSelection( mouse.modifiers , view.currentIndex, index)
view.currentIndex = rowModel.index
lineView.forceActiveFocus()
}
if (mouse.button === Qt.RightButton){
root.rightClick(lineView,rowModel, hoverArea.mapToGlobal(mouse.x,mouse.y) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment