Gerrit: Set focus to password in AuthenticationDialog

... if the user name is already filled.

Change-Id: I4ba72d8a74e583bd280b2fe3715bed81a78c516f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2017-03-04 19:23:18 +01:00
committed by André Hartmann
parent f6715fe52b
commit 861d30cf68

View File

@@ -90,6 +90,8 @@ AuthenticationDialog::AuthenticationDialog(GerritServer *server) :
const int result = server->testConnection();
okButton->setEnabled(result == 200);
});
if (!ui->userLineEdit->text().isEmpty())
ui->passwordLineEdit->setFocus();
}
AuthenticationDialog::~AuthenticationDialog()