mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +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)
|
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user