[vlc-commits] qml: navigate back in history on cancel action in network view

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


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Sep 25 18:22:32 2019 +0200| [7b035bfe331f0595f3a97f22f304dcd739820c47] | committer: Jean-Baptiste Kempf

qml: navigate back in history on cancel action in network view

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

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

 modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
index cfd7569298..8cfbe5d54b 100644
--- a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
@@ -279,6 +279,9 @@ Utils.NavigableFocusScope {
             onActionAtIndex: delegateModel.actionAtIndex(index)
 
             navigationParent: root
+            navigationCancel: function() {
+                history.previous(History.Go)
+            }
 
             header:  Utils.LabelSeparator {
                 text: providerModel.name
@@ -304,6 +307,9 @@ Utils.NavigableFocusScope {
             onActionAtIndex: delegateModel.actionAtIndex(index)
 
             navigationParent: root
+            navigationCancel: function() {
+                history.previous(History.Go)
+            }
 
             header:  Utils.LabelSeparator {
                 text: providerModel.name



More information about the vlc-commits mailing list