diff options
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r-- | qt-mobile/qml/main.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index bbc72f3ec..4422d5b07 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -27,23 +27,23 @@ MobileComponents.ApplicationWindow { bannerImageSource: "dive.jpg" actions: [ Action { - text: "Cloud credentials" + text: "Dive list" onTriggered: { - stackView.push(cloudCredWindow) + for (var i=stackView.depth; i>1; i--) { + stackView.pop() + } } }, Action { - text: "Preferences" + text: "Cloud credentials" onTriggered: { - stackView.push(prefsWindow) + stackView.push(cloudCredWindow) } }, Action { - text: "Back to Divelist" + text: "Preferences" onTriggered: { - for (var i=stackView.depth; i>1; i--) { - stackView.pop() - } + stackView.push(prefsWindow) } }, MobileComponents.ActionGroup { |