[accounts-dialog] Small strength indicator tweak



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]