[vlc-devel] [PATCH 3/9] qml: don't move selection in the Playlist when no item is selected

Pierre Lamot pierre at videolabs.io
Mon Nov 18 18:15:36 CET 2019


---
 modules/gui/qt/qml/playlist/PlaylistListView.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt/qml/playlist/PlaylistListView.qml b/modules/gui/qt/qml/playlist/PlaylistListView.qml
index 367eed9888..bf1ecd160e 100644
--- a/modules/gui/qt/qml/playlist/PlaylistListView.qml
+++ b/modules/gui/qt/qml/playlist/PlaylistListView.qml
@@ -145,6 +145,9 @@ Utils.NavigableFocusScope {
             if (view.mode === "select") {
                 console.log("update selection select")
             } else if (mode == "move") {
+                if (root.plmodel.selectedCount === 0)
+                    return
+
                 var selectedIndexes = root.plmodel.getSelection()
 
                 /* always move relative to the first item of the selection */
-- 
2.17.1



More information about the vlc-devel mailing list