diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-29 13:09:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-29 13:09:30 +0300 |
commit | 3ef886b241c5654bf21e5326d1299ccde161b228 (patch) | |
tree | c3596884a6c0b19cdcf06a41ff66de639c0189a9 /src/gui | |
parent | 6f6cac1787dec5f15b298c18c08339cacde7cb99 (diff) | |
download | manaplus-3ef886b241c5654bf21e5326d1299ccde161b228.tar.gz manaplus-3ef886b241c5654bf21e5326d1299ccde161b228.tar.bz2 manaplus-3ef886b241c5654bf21e5326d1299ccde161b228.tar.xz manaplus-3ef886b241c5654bf21e5326d1299ccde161b228.zip |
Fix password length limit messages.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/changeemaildialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/changepassworddialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/registerdialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/unregisterdialog.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/changeemaildialog.cpp b/src/gui/changeemaildialog.cpp index 3cf519336..cd10b8dfa 100644 --- a/src/gui/changeemaildialog.cpp +++ b/src/gui/changeemaildialog.cpp @@ -141,7 +141,7 @@ void ChangeEmailDialog::action(const gcn::ActionEvent &event) "least %u characters long."), min); error = 1; } - else if (newFirstEmail.length() > max - 1 ) + else if (newFirstEmail.length() > max) { // First email address too long // TRANSLATORS: change email error diff --git a/src/gui/changepassworddialog.cpp b/src/gui/changepassworddialog.cpp index c337dccdf..3f41df3c5 100644 --- a/src/gui/changepassworddialog.cpp +++ b/src/gui/changepassworddialog.cpp @@ -129,7 +129,7 @@ void ChangePasswordDialog::action(const gcn::ActionEvent &event) " %u characters long."), min); error = 2; } - else if (newFirstPass.length() > max - 1 ) + else if (newFirstPass.length() > max) { // First password too long // TRANSLATORS: change password error diff --git a/src/gui/registerdialog.cpp b/src/gui/registerdialog.cpp index bafcad58a..183f6b6b8 100644 --- a/src/gui/registerdialog.cpp +++ b/src/gui/registerdialog.cpp @@ -219,7 +219,7 @@ void RegisterDialog::action(const gcn::ActionEvent &event) minPass); error = 2; } - else if (mPasswordField->getText().length() > maxPass - 1 ) + else if (mPasswordField->getText().length() > maxPass) { // Pass too long errorMsg = strprintf diff --git a/src/gui/unregisterdialog.cpp b/src/gui/unregisterdialog.cpp index a88ac7e16..3640456d0 100644 --- a/src/gui/unregisterdialog.cpp +++ b/src/gui/unregisterdialog.cpp @@ -126,7 +126,7 @@ void UnRegisterDialog::action(const gcn::ActionEvent &event) "characters long."), min); error = true; } - else if (password.length() > max - 1) + else if (password.length() > max) { // TRANSLATORS: unregister dialog. error message. errorMsg << strprintf(_("The password needs to be less than " |