[accounts-dialog] Small strength indicator tweak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accounts-dialog] Small strength indicator tweak
- Date: Wed, 3 Mar 2010 03:28:25 +0000 (UTC)
commit 987b40d01323ab39a0497effa29c1e28d7f72209
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 2 21:05:47 2010 -0500
Small strength indicator tweak
src/um-password-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/um-password-dialog.c b/src/um-password-dialog.c
index 671ed9e..18bc5f4 100644
--- a/src/um-password-dialog.c
+++ b/src/um-password-dialog.c
@@ -462,7 +462,10 @@ update_password_strength (UmPasswordDialog *um)
if (strlen (password) < MIN_PASSWORD_LEN) {
strength = 0.0;
- hint = C_("Password strength", "Too short");
+ if (password[0] == '\0')
+ hint = "";
+ else
+ hint = C_("Password strength", "Too short");
}
else if (strength < 0.50)
hint = C_("Password strength", "Weak");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]