aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-03-14 11:30:05 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-19 02:49:56 +0800
commitdbe2a1ca1573e5c04603f7eecd8e92079465de6d (patch)
tree479086f1c5b3614496c40203a1c3a5cc1d94b61f
parentf54aa8955897352649904d4516c4023e72ba2c16 (diff)
downloadgsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.tar
gsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.tar.gz
gsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.tar.bz2
gsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.tar.lz
gsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.tar.xz
gsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.tar.zst
gsoc2013-empathy-dbe2a1ca1573e5c04603f7eecd8e92079465de6d.zip
Don't replace password with fake-password if there's something real in there
-rw-r--r--libempathy-gtk/empathy-account-widget-skype.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget-skype.c b/libempathy-gtk/empathy-account-widget-skype.c
index c263c9e2e..a4425613a 100644
--- a/libempathy-gtk/empathy-account-widget-skype.c
+++ b/libempathy-gtk/empathy-account-widget-skype.c
@@ -379,6 +379,11 @@ account_widget_build_skype_get_password_saved_cb (TpProxy *account,
DEBUG ("PasswordSaved: %s", password_saved ? "yes" : "no");
+ /* don't wipe the password if there's a real value in there */
+ if (g_object_get_data (password_entry, "fake-password") == NULL &&
+ !tp_str_empty (gtk_entry_get_text (GTK_ENTRY (password_entry))))
+ return;
+
gtk_entry_set_text (GTK_ENTRY (password_entry),
password_saved ? "xxxxxxxx": "");