aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 23:06:46 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 23:06:46 -0800
commite20005ed36e51686b2cfa3b47d26c6fda84f34de (patch)
treea42d0e4a771dcd9ba98e1a802cb68c79bb9a0e43 /qt-mobile/qml
parent4db5e840bf3662e84cc76f3ef3df4fa30e4f7dfc (diff)
downloadsubsurface-e20005ed36e51686b2cfa3b47d26c6fda84f34de.tar.gz
QML UI: when manually adding a dive clear out all the fields
Otherwise the data from the last dive dispayed (or added) will be shown. Fixes #983 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r--qt-mobile/qml/main.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index 000964acc..c0d079106 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -54,6 +54,16 @@ MobileComponents.ApplicationWindow {
detailsWindow.dive_id = manager.addDive();
detailsWindow.number = manager.getNumber(detailsWindow.dive_id)
detailsWindow.date = manager.getDate(detailsWindow.dive_id)
+ detailsWindow.airtemp = ""
+ detailsWindow.watertemp = ""
+ detailsWindow.buddy = ""
+ detailsWindow.depth = ""
+ detailsWindow.divemaster = ""
+ detailsWindow.notes = ""
+ detailsWindow.location = ""
+ detailsWindow.duration = ""
+ detailsWindow.suit = ""
+ detailsWindow.weight = ""
stackView.push(detailsWindow)
}
}