[vlc-commits] qml: allow item to start to play only in normal mode in PlaylistListView
Fatih Uzunoglu
git at videolan.org
Tue Jan 12 13:20:38 UTC 2021
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan 8 00:36:40 2021 +0300| [453adf290866d9c501a2384f4f614bf9b48206f6] | committer: Pierre Lamot
qml: allow item to start to play only in normal mode in PlaylistListView
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=453adf290866d9c501a2384f4f614bf9b48206f6
---
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)
}
More information about the vlc-commits
mailing list