[vlc-commits] qml: fix focus issue with empty label in MusicTracksDisplay

Prince Gupta git at videolan.org
Wed Jan 27 09:25:35 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jan 15 20:24:07 2021 +0530| [88cff3769de1d5afeaab8e75f6c91eb04b60b290] | committer: Pierre Lamot

qml: fix focus issue with empty label in MusicTracksDisplay

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

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

 modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
index cf2320abdd..42be9a9d6e 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
@@ -55,7 +55,7 @@ Widgets.NavigableFocusScope {
         id: tracklistdisplay_id
         anchors.fill: parent
         visible: model.count > 0
-        focus: visible
+        focus: model.count > 0
         dragItem: trackDragItem
         headerTopPadding: VLCStyle.margin_normal
         navigationParent: root
@@ -72,7 +72,7 @@ Widgets.NavigableFocusScope {
     EmptyLabel {
         anchors.fill: parent
         visible: tracklistdisplay_id.model.count === 0
-        focus: visible
+        focus: tracklistdisplay_id.model.count === 0
         text: i18n.qtr("No tracks found\nPlease try adding sources, by going to the Network tab")
         navigationParent: root
         cover: VLCStyle.noArtAlbumCover



More information about the vlc-commits mailing list