From 052be692bbfe81636318588f48b2530c9628499d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 14 Apr 2017 17:09:09 -0700 Subject: QML UI: reset completion fields when adding dive Otherwise the last value in those fields might still be shown. Also, set up the cylinder completion. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mobile-widgets/qml/main.qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 30bb56ccc..950b61e41 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -83,15 +83,21 @@ Kirigami.ApplicationWindow { detailsWindow.watertemp = "" detailsWindow.buddyModel = manager.buddyInit detailsWindow.buddyIndex = -1 + detailsWindow.buddyText = "" detailsWindow.depth = "" detailsWindow.divemasterModel = manager.divemasterInit detailsWindow.divemasterIndex = -1 + detailsWindow.divemasterText = "" detailsWindow.notes = "" detailsWindow.location = "" detailsWindow.gps = "" detailsWindow.duration = "" detailsWindow.suitModel = manager.suitInit detailsWindow.suitIndex = -1 + detailsWindow.suitText = "" + detailsWindow.cylinderModel = manager.cylinderInit + detailsWindow.cylinderIndex = -1 + detailsWindow.cylinderText = "" detailsWindow.weight = "" detailsWindow.gasmix = "" detailsWindow.startpressure = "" -- cgit v1.2.3-70-g09d2