diff options
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r-- | src/gui/windows/logindialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index c39486dda..34f84fee4 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -125,8 +125,11 @@ LoginDialog::LoginDialog(LoginData &data, } mUpdateHostText->adjustSize(); - if (mPassField->getText().empty() && LoginDialog::savedPassword != "") + if (mPassField->getText().empty() && + !LoginDialog::savedPassword.empty()) + { mPassField->setText(LoginDialog::savedPassword); + } mUpdateTypeDropDown->setActionEventId("updatetype"); mUpdateTypeDropDown->setSelected((mLoginData->updateType |