[vlc-devel] [PATCH 02/22] qml: history.push changes view by default

Pierre Lamot pierre at videolabs.io
Fri Feb 14 11:23:37 CET 2020


   This is the behavior currently used in every calls.
---
 modules/gui/qt/util/navigation_history.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/util/navigation_history.hpp b/modules/gui/qt/util/navigation_history.hpp
index b19d476b14..e6800f6f05 100644
--- a/modules/gui/qt/util/navigation_history.hpp
+++ b/modules/gui/qt/util/navigation_history.hpp
@@ -47,7 +47,7 @@ public slots:
      * }, History.Go)
      * \endcode
      */
-    Q_INVOKABLE void push( QVariantMap, PostAction = PostAction::Stay );
+    Q_INVOKABLE void push( QVariantMap, PostAction = PostAction::Go );
 
     /**
      * provide a short version of the history push({k:v}), wich implicitly create a dictonnary tree from the input list
@@ -64,7 +64,7 @@ public slots:
      *  push(["foo", "bar", {baz: "plop"} ], History.Go)
      * \endcode
      */
-    Q_INVOKABLE void push(QVariantList itemList, PostAction = PostAction::Stay );
+    Q_INVOKABLE void push(QVariantList itemList, PostAction = PostAction::Go );
 
 
     /**
@@ -82,10 +82,10 @@ public slots:
     Q_INVOKABLE void update(QVariantList itemList);
 
     // Go to previous page
-    void previous( PostAction = PostAction::Stay );
+    void previous( PostAction = PostAction::Go );
 
     // Go to next page
-    void next( PostAction = PostAction::Stay );
+    void next( PostAction = PostAction::Go );
 
 private:
     QVariantList m_history;
-- 
2.17.1



More information about the vlc-devel mailing list