mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T219, override pilot if valid / not only if having credentials
Remark: Also overrides if there is no password
This commit is contained in:
@@ -72,7 +72,7 @@ namespace BlackGui
|
||||
bool CPilotForm::setUser(const CUser &user, bool ignoreEmptyUser)
|
||||
{
|
||||
if (ignoreEmptyUser && user.isNull()) { return false; }
|
||||
if (user.hasCredentials())
|
||||
if (user.isValid())
|
||||
{
|
||||
ui->le_Id->setText(user.getId());
|
||||
ui->le_Password->setText(user.getPassword());
|
||||
|
||||
Reference in New Issue
Block a user