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 committed by Brad Davis
parent 162395e7fe
commit 7819b5b5c3

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()
}
}