diff options
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 " |