From e20005ed36e51686b2cfa3b47d26c6fda84f34de Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 5 Jan 2016 23:06:46 -0800 Subject: 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 --- qt-mobile/qml/main.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qt-mobile/qml/main.qml') 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) } } -- cgit v1.2.3-70-g09d2