[vlc-devel] [PATCH 32/49] qml: navigate back in history on cancel action in network view

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


---
 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
-- 
2.20.1



More information about the vlc-devel mailing list