Don't clear if we're on the root
commit558fc0599488ea46fbfdcae4eec6fc72b2bdd5bc
authorAlbert Astals Cid <albert.astals@canonical.com>
dateFri 25 Sep 2015, 17:01 (11 years ago)
parent6606d60
qml/Dash/DashNavigation.qml+6
@@ -37,6 +37,12 @@ Item {
3737 visible: height != 0
3838 implicitHeight: navigationListView.y + navigationListView.height
3939
40+ function resetNavigation() {
41+ if (navigationModel.count > 1) {
42+ clear();
43+ }
44+ }
45+
4046 QtObject {
4147 id: d
4248 readonly property color foregroundColor: root.scopeStyle
qml/Dash/PageHeaderExtraPanel.qml+1−1
@@ -38,7 +38,7 @@ Item {
3838 signal dashNavigationLeafClicked()
3939
4040 function resetNavigation() {
41− dashNavigation.clear();
41+ dashNavigation.resetNavigation();
4242 }
4343
4444 Rectangle {