changeset 24357:f108d707b6e1

Don't populate the password field on the modify account dialog if we are not actually remembering it permanently
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 01 Nov 2008 16:45:09 +0000
parents ab5a49e46e38
children 15d6fd6b08a2
files pidgin/gtkaccount.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkaccount.c	Sat Nov 01 16:24:56 2008 +0000
+++ b/pidgin/gtkaccount.c	Sat Nov 01 16:45:09 2008 +0000
@@ -562,7 +562,8 @@
 
 	/* Set the fields. */
 	if (dialog->account != NULL) {
-		if (purple_account_get_password(dialog->account))
+		if (purple_account_get_password(dialog->account) &&
+		    purple_account_get_remember_password(dialog->account))
 			gtk_entry_set_text(GTK_ENTRY(dialog->password_entry),
 							   purple_account_get_password(dialog->account));