@@ -141,7 +141,7 @@ AbstractButton {
141 navigation: (nullifyNavigation || !scope) ? null : scope.getNavigation(navigationId)
141 navigation: (nullifyNavigation || !scope) ? null : scope.getNavigation(navigationId)
142 currentNavigation: root.currentNavigation
142 currentNavigation: root.currentNavigation
143 onEnterNavigation: {
143 onEnterNavigation: {
144− scope.performQuery(navigationQuery);
144+ scope.setNavigationState(newNavigationId, false);
145 // We only need to add a new item to the model
145 // We only need to add a new item to the model
146 // if we have children, otherwise just load it
146 // if we have children, otherwise just load it
147 if (hasChildren) {
147 if (hasChildren) {
@@ -153,7 +153,7 @@ AbstractButton {
155 onGoBackToParentClicked: {
155 onGoBackToParentClicked: {
156− scope.performQuery(navigation.parentQuery);
156+ scope.setNavigationState(navigation.parentNavigationId, false);
157 isGoingBack = true;
157 isGoingBack = true;
158 navigationModel.setProperty(navigationListView.currentIndex - 1, "nullifyNavigation", false);
158 navigationModel.setProperty(navigationListView.currentIndex - 1, "nullifyNavigation", false);
159 navigationListView.currentIndex--;
159 navigationListView.currentIndex--;
@@ -162,7 +162,7 @@ AbstractButton {
162 showList = false;
162 showList = false;
163 if (root.currentNavigation.parentNavigationId == navigation.navigationId) {
163 if (root.currentNavigation.parentNavigationId == navigation.navigationId) {
164 // For leaves we have to go to the parent too
164 // For leaves we have to go to the parent too
165− scope.performQuery(root.currentNavigation.parentQuery);
165+ scope.setNavigationState(root.currentNavigation.parentNavigationId, false);