# HG changeset patch # User Daniel Atallah # Date 1216340447 0 # Node ID 33418ea6d801af530cd04d74530f989addf66b8c # Parent de24d89313b06744c6c3ea97831c5dccf911be3d Fix a crash that occurs when you try to edit an account and no prpls are available. Fixes #6355. diff -r de24d89313b0 -r 33418ea6d801 pidgin/gtkaccount.c --- 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;