[vlc-devel] [PATCH 27/55] qml: allow item to start to play only in normal mode in PlaylistListView
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Jan 7 21:36:40 UTC 2021
---
modules/gui/qt/playlist/qml/PlaylistListView.qml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 199b85f4c8..4e1e620ebe 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -403,7 +403,11 @@ Widgets.NavigableFocusScope {
if (button === Qt.RightButton)
contextMenu.popup(index, globalMousePos)
}
- onItemDoubleClicked: mainPlaylistController.goTo(index, true)
+ onItemDoubleClicked: {
+ if (listView.mode === PlaylistListView.Mode.Normal)
+ mainPlaylistController.goTo(index, true)
+ }
+
colors: root.colors
onDragStarting: {
@@ -521,8 +525,7 @@ Widgets.NavigableFocusScope {
if (mode === PlaylistListView.Mode.Select)
root.model.toggleSelected(index)
- else //normal
- // play
+ else if (mode === PlaylistListView.Mode.Normal)
mainPlaylistController.goTo(index, true)
}
--
2.27.0
More information about the vlc-devel
mailing list