[vlc-commits] qml: fix node traversal in network view

Pierre Lamot git at videolan.org
Mon Oct 14 11:59:19 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Sep 17 14:35:49 2019 +0200| [8c5dd706b28f2e66f91e4ca99d76110f27bc24bd] | committer: Jean-Baptiste Kempf

qml: fix node traversal in network view

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/qml/mediacenter/MCNetworksSectionSelectableDM.qml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/qml/mediacenter/MCNetworksSectionSelectableDM.qml b/modules/gui/qt/qml/mediacenter/MCNetworksSectionSelectableDM.qml
index 6faa74fd79..3bc5d3dc6d 100644
--- a/modules/gui/qt/qml/mediacenter/MCNetworksSectionSelectableDM.qml
+++ b/modules/gui/qt/qml/mediacenter/MCNetworksSectionSelectableDM.qml
@@ -95,9 +95,8 @@ Utils.SelectableDelegateModel {
             }
             medialib.addAndPlay( list )
         } else {
-            if (delegateModel.items.get(index).model.type != MLNetworkModel.TYPE_FILE)  {
-                console.log("not file")
-                root.tree = delegateModel.items.get(index).model.tree
+            if (delegateModel.items.get(index).model.type === MLNetworkModel.TYPE_DIRECTORY
+                    || delegateModel.items.get(index).model.type === MLNetworkModel.TYPE_NODE)  {
                 history.push(["mc", "network", { tree: delegateModel.items.get(index).model.tree }], History.Go);
             } else {
                 medialib.addAndPlay( delegateModel.items.get(index).model.mrl );



More information about the vlc-commits mailing list