[vlc-devel] [PATCH 35/55] qml: deselect all when right clicked in empty area / footer in PlaylistListView
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Jan 7 21:36:48 UTC 2021
---
modules/gui/qt/playlist/qml/PlaylistListView.qml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index be9b1a385c..9ab6eb3dd4 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -320,8 +320,14 @@ Widgets.NavigableFocusScope {
onClicked: {
listView.forceActiveFocus()
- if( mouse.button === Qt.RightButton )
+
+ if ( mouse.button === Qt.LeftButton || mouse.button === Qt.RightButton ) {
+ root.model.deselectAll()
+ }
+
+ if ( mouse.button === Qt.RightButton ) {
contextMenu.popup(-1, this.mapToGlobal(mouse.x, mouse.y))
+ }
}
}
--
2.27.0
More information about the vlc-devel
mailing list