diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 8827651a8..c338fa04c 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -90,7 +90,12 @@ Kirigami.ApplicationWindow { function showMap() { if (globalDrawer.drawerOpen) globalDrawer.close() - pageStack.push(mapPage) + var i=pageIndex(mapPage) + if (i === -1) + pageStack.push(mapPage) + else + pageStack.currentIndex = i + } function pageIndex(pageToFind) { |