From 29e704a1b29ade04d5cbb8e9a27cbac31d957754 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 31 Jul 2017 18:52:01 +0200 Subject: 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 --- mobile-widgets/qml/DiveDetails.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qml/DiveDetails.qml') 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(); } -- cgit v1.2.3-70-g09d2