Commit 0d3f000f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Folder View] Accept mouse events if we handled them

This keeps the event from propagating to e.g. the containment resulting in two context
menus (both Folder View's item context menu and the containment action) opening at once.

BUG: 387199
FIXED-IN: 5.12.0

Differential Revision: https://phabricator.kde.org/D8961
parent 29ebb313
......@@ -253,6 +253,7 @@ Item {
if (mouse.buttons & Qt.BackButton) {
if (root.isPopup && dir.resolvedUrl != dir.resolve(plasmoid.configuration.url)) {
doBack();
mouse.accepted = true;
}
return;
......@@ -273,6 +274,7 @@ Item {
if (mouse.buttons & Qt.RightButton) {
clearPressState();
dir.openContextMenu();
mouse.accepted = true;
}
} else {
pressedItem = hoveredItem;
......@@ -308,6 +310,7 @@ Item {
clearPressState();
dir.openContextMenu();
mouse.accepted = true;
}
}
}
......
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