Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 6 years ago
parent 8da8cc1ae4
commit 28c4bcc63c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1116,14 +1116,12 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
first = true;
do {
TQCString password;
if (newlogin)
ret = (KPasswordDialog::getNewPassword(password, text) == KPasswordDialog::Accepted);
ret = (KPasswordDialog::getNewPassword(msg, text) == KPasswordDialog::Accepted);
else
ret = (KPasswordDialog::getPassword(password, text) == KPasswordDialog::Accepted);
ret = (KPasswordDialog::getPassword(msg, text) == KPasswordDialog::Accepted);
password.stripWhiteSpace();
msg = password;
msg.stripWhiteSpace();
if (first) {
text += i18n("The password may not contain colons or spaces!");

Loading…
Cancel
Save