Commit 93c82a56 authored by Nate Graham's avatar Nate Graham
Browse files

Folder View: Don't cancel multi-selection with right-click

Right-clicking on multiple things is a real use case which got broken
in !591
while fixing the bug of un-clicked-on items remaining selected after
clicking one of them.

This commit fixes that.

BUG: 443743
FIXED-IN: 5.23.1


(cherry picked from commit 2b828c60)
parent 3bd34bae
......@@ -339,7 +339,7 @@ FocusScope {
onCanceled: pressCanceled()
onReleased: {
if (hoveredItem && !hoveredItem.blank) {
if (hoveredItem && !hoveredItem.blank && mouse.button != Qt.RightButton) {
var pos = mapToItem(hoveredItem.actionsOverlay, mouse.x, mouse.y);
if (!(pos.x <= hoveredItem.actionsOverlay.width && pos.y <= hoveredItem.actionsOverlay.height)
&& (!(gridView.shiftPressed && gridView.currentIndex != -1) && !gridView.ctrlPressed)) {
......
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