summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-30 14:02:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-01 11:35:39 -0800
commit685403ff4723c42e5e89080b20f4700de1dc5566 (patch)
tree93acf47f5d2dd94abbe8a2f7fd6f271197d32b01 /mobile-widgets
parent0a88d9839cae52e3f64606c8f3a61caea95aa98f (diff)
downloadsubsurface-685403ff4723c42e5e89080b20f4700de1dc5566.tar.gz
mobile/UI: ensure that edited text is current
By removing focus from all input fields we can ensure that we have the correct data reflected when saving an edited dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index e574119a2..1736282f3 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -80,6 +80,7 @@ Item {
}
function saveData() {
+ focusReset()
var state = diveDetailsPage.state
diveDetailsPage.state = "view" // run the transition
// join cylinder info from separate string into a list.