summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-07-31 18:52:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-02 18:49:47 -0700
commit29e704a1b29ade04d5cbb8e9a27cbac31d957754 (patch)
treee8e499a88ca7fa696a14a1dc64234b13a4f60c9c /mobile-widgets
parentbc7d11860fb9550bf72bd6daaf566373e98959e3 (diff)
downloadsubsurface-29e704a1b29ade04d5cbb8e9a27cbac31d957754.tar.gz
QML UI: loose focus on endEditMode
This handles a cornercase where a user starts editing and then cances the divedit followed by a return to edit mode. The previously acive textfield would then be active again even though all changes are lost. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index 2e771f086..ed231486d 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -136,6 +136,7 @@ Kirigami.Page {
manager.addDiveAborted(dive_id)
// just cancel the edit/add state
state = "view";
+ focus = false;
Qt.inputMethod.hide();
}