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
This commit is contained in:
Sébastien Blin
2023-02-28 11:17:08 -05:00
parent 146afcd6a9
commit 77f051ce59

View File

@ -99,6 +99,7 @@ Loader {
onFocusChanged: {
if (!focus) {
root.editMode = false
root.accepted()
}
activeChanged(root.editMode)
}