Skip to content
Snippets Groups Projects
Commit 77f051ce authored by Sébastien Blin's avatar Sébastien Blin
Browse files

modaltextedit: accept state as soon as focus changes

So that pressing tab will emit onAccepted and the dynamic text
always show the correct value saved.

Change-Id: I64326f1f836d611776bcfaf7993e6254e5d5aefe
parent 146afcd6
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ Loader { ...@@ -99,6 +99,7 @@ Loader {
onFocusChanged: { onFocusChanged: {
if (!focus) { if (!focus) {
root.editMode = false root.editMode = false
root.accepted()
} }
activeChanged(root.editMode) activeChanged(root.editMode)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment