Ref T219, override pilot if valid / not only if having credentials

Remark: Also overrides if there is no password
This commit is contained in:
Klaus Basan
2018-01-17 01:20:43 +01:00
parent 3375ca1b25
commit 519fce5a7a

View File

@@ -72,7 +72,7 @@ namespace BlackGui
bool CPilotForm::setUser(const CUser &user, bool ignoreEmptyUser) bool CPilotForm::setUser(const CUser &user, bool ignoreEmptyUser)
{ {
if (ignoreEmptyUser && user.isNull()) { return false; } if (ignoreEmptyUser && user.isNull()) { return false; }
if (user.hasCredentials()) if (user.isValid())
{ {
ui->le_Id->setText(user.getId()); ui->le_Id->setText(user.getId());
ui->le_Password->setText(user.getPassword()); ui->le_Password->setText(user.getPassword());