changeset 23564:33418ea6d801

Fix a crash that occurs when you try to edit an account and no prpls are available. Fixes #6355.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 18 Jul 2008 00:20:47 +0000
parents de24d89313b0
children 6083c36f68d6
files pidgin/gtkaccount.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkaccount.c	Thu Jul 17 16:48:37 2008 +0000
+++ b/pidgin/gtkaccount.c	Fri Jul 18 00:20:47 2008 +0000
@@ -1186,7 +1186,6 @@
 	char *tmp;
 	gboolean new_acct = FALSE, icon_change = FALSE;
 	PurpleAccount *account;
-	PurplePluginProtocolInfo *prpl_info;
 
 	/* Build the username string. */
 	username = g_strdup(gtk_entry_get_text(GTK_ENTRY(dialog->screenname_entry)));
@@ -1254,8 +1253,7 @@
 		purple_account_set_alias(account, NULL);
 
 	/* Buddy Icon */
-	prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(dialog->plugin);
-	if (prpl_info != NULL && prpl_info->icon_spec.format != NULL)
+	if (dialog->prpl_info != NULL && dialog->prpl_info->icon_spec.format != NULL)
 	{
 		const char *filename;