1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 02:01:19 +00:00

Fix wrong initial focus

https://github.com/Swordfish90/cool-retro-term/issues/733
This commit is contained in:
Attacktive 2022-07-07 01:40:50 +09:00
parent f157648d1e
commit 130533dd1e

View File

@ -82,11 +82,15 @@ Window {
nameSelected(name) nameSelected(name)
close() close()
} }
namefield.forceActiveFocus()
} }
} }
Button { Button {
text: qsTr("Cancel") text: qsTr("Cancel")
onClicked: close() onClicked: function() {
namefield.forceActiveFocus()
close()
}
} }
} }
} }