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>
This commit is contained in:
Joakim Bygdell 2017-07-31 18:52:01 +02:00 committed by Dirk Hohndel
parent bc7d11860f
commit 29e704a1b2

View file

@ -136,6 +136,7 @@ Kirigami.Page {
manager.addDiveAborted(dive_id)
// just cancel the edit/add state
state = "view";
focus = false;
Qt.inputMethod.hide();
}