aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r--qt-mobile/qml/main.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index eadd220a3..703f4d17f 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -49,8 +49,10 @@ MobileComponents.ApplicationWindow {
Action {
text: "Add dive manually"
onTriggered: {
- manager.addDive();
detailsWindow.state = "edit"
+ detailsWindow.dive_id = manager.addDive();
+ detailsWindow.number = manager.getNumber(detailsWindow.dive_id)
+ detailsWindow.date = manager.getDate(detailsWindow.dive_id)
stackView.push(detailsWindow)
}
}