[vlc-commits] qt: media center: Explicitely reload the medialib on first display

Hugo Beauzée-Luyssen git at videolan.org
Thu Jan 9 16:54:49 CET 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 27 18:09:26 2019 +0100| [132d3fed8f22cbeba6dc7bdb4b977cfee9b8f1c9] | committer: Hugo Beauzée-Luyssen

qt: media center: Explicitely reload the medialib on first display

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

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

diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index a12f915b7c..ef1135185b 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -38,7 +38,10 @@ Widgets.NavigableFocusScope {
 
     onViewChanged: loadView()
     onViewPropertiesChanged: loadView()
-    Component.onCompleted: loadView()
+    Component.onCompleted: {
+        loadView()
+        medialib.reload()
+    }
 
     function loadView() {
         var found = stackView.loadView(root.pageModel, root.view, root.viewProperties)



More information about the vlc-commits mailing list