[vlc-devel] [PATCH 5/5] qml: fix focus issue with empty label in MusicTracksDisplay
Prince Gupta
guptaprince8832 at gmail.com
Fri Jan 22 16:03:18 UTC 2021
---
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
--
2.25.1
More information about the vlc-devel
mailing list