[vlc-commits] qml: remove unneeded condition check for SelectAll in PlaylistListView

Fatih Uzunoglu git at videolan.org
Tue Jan 12 13:20:42 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan  8 00:36:44 2021 +0300| [4482e2a620f95b59184d246ce660630d1cb3b1eb] | committer: Pierre Lamot

qml: remove unneeded condition check for SelectAll in PlaylistListView

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4482e2a620f95b59184d246ce660630d1cb3b1eb
---

 modules/gui/qt/playlist/qml/PlaylistListView.qml | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 95f8cda095..524fd45c98 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -638,15 +638,6 @@ Widgets.NavigableFocusScope {
     }
 
     Keys.priority: Keys.AfterItem
-    Keys.forwardTo: view
-    Keys.onPressed: {
-        if (event.matches(StandardKey.SelectAll))
-        {
-            root.model.selectAll();
-        }
-        else
-        {
-            defaultKeyAction(event, 0)
-        }
-    }
+    Keys.forwardTo: listView
+    Keys.onPressed: defaultKeyAction(event, 0)
 }



More information about the vlc-commits mailing list