Fix setting focus at start-up when not logged in

This commit is contained in:
David Rowe 2015-06-05 09:02:35 -07:00
parent 977eae9f86
commit 6c7fb7e54c

View file

@ -365,9 +365,10 @@ Dialog {
}
}
onEnabledChanged: {
if (enabled) {
username.forceActiveFocus();
onOpacityChanged: {
// Set focus once animation is completed so that focus is set at start-up when not logged in
if (opacity == 1.0) {
username.forceActiveFocus()
}
}