mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
bc7d11860f
commit
29e704a1b2
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ Kirigami.Page {
|
|||
manager.addDiveAborted(dive_id)
|
||||
// just cancel the edit/add state
|
||||
state = "view";
|
||||
focus = false;
|
||||
Qt.inputMethod.hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue