[vlc-devel] [PATCH 4/5] qml: fix focus issue with empty label in MusicArtistDisplay

Prince Gupta guptaprince8832 at gmail.com
Fri Jan 22 16:03:17 UTC 2021


---
 modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
index a0635b3a91..798c168d03 100644
--- a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
@@ -237,7 +237,8 @@ Widgets.PageLoader {
                 id: view
 
                 anchors.fill: parent
-                focus: true
+                visible: artistModel.count > 0
+                focus: artistModel.count > 0
                 initialItem: mainInterface.gridView ? gridComponent : tableComponent
             }
 
@@ -255,6 +256,7 @@ Widgets.PageLoader {
             EmptyLabel {
                 anchors.fill: parent
                 visible: artistModel.count === 0
+                focus: artistModel.count === 0
                 text: i18n.qtr("No artists found\nPlease try adding sources, by going to the Network tab")
                 navigationParent: root
                 cover: VLCStyle.noArtArtistCover
-- 
2.25.1



More information about the vlc-devel mailing list