changeset 15039:a1138f266bb1

[gaim-migrate @ 17821] Show the placeholder icon in the accounts window for new accounts. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 26 Nov 2006 19:49:14 +0000
parents 931644bcd74f
children 9a69964d8c18
files gtk/gtkaccount.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkaccount.c	Sun Nov 26 17:25:08 2006 +0000
+++ b/gtk/gtkaccount.c	Sun Nov 26 19:49:14 2006 +0000
@@ -617,12 +617,12 @@
 		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->icon_check),
 					     !gaim_account_get_ui_bool(dialog->account, GAIM_GTK_UI, "use-global-buddyicon",
 								       TRUE));
-
-		set_dialog_icon(dialog,
-				g_strdup(gaim_account_get_ui_string(dialog->account,
-						GAIM_GTK_UI, "non-global-buddyicon", NULL)));
 	}
 
+	set_dialog_icon(dialog, dialog->account ?
+			g_strdup(gaim_account_get_ui_string(dialog->account,
+					GAIM_GTK_UI, "non-global-buddyicon", NULL)) : NULL);
+
 	if (!dialog->prpl_info ||
 			(!(dialog->prpl_info->options & OPT_PROTO_MAIL_CHECK) &&
 			 (dialog->prpl_info->icon_spec.format ==  NULL))) {