[vlc-devel] [PATCH 22/49] qml: fix node traversal in network view

Pierre Lamot pierre at videolabs.io
Fri Oct 11 15:17:46 CEST 2019


---
 .../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 );
-- 
2.20.1



More information about the vlc-devel mailing list