summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kbackgammon/engines/fibs/kbgfibs.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/kbackgammon/engines/fibs/kbgfibs.cpp b/kbackgammon/engines/fibs/kbgfibs.cpp
index ab970518..08efd4bc 100644
--- a/kbackgammon/engines/fibs/kbgfibs.cpp
+++ b/kbackgammon/engines/fibs/kbgfibs.cpp
@@ -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!");