diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-12-30 14:02:10 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-01 11:35:39 -0800 |
commit | 685403ff4723c42e5e89080b20f4700de1dc5566 (patch) | |
tree | 93acf47f5d2dd94abbe8a2f7fd6f271197d32b01 /mobile-widgets | |
parent | 0a88d9839cae52e3f64606c8f3a61caea95aa98f (diff) | |
download | subsurface-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.qml | 1 |
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. |