# HG changeset patch # User Stu Tomlinson # Date 1249520711 0 # Node ID 3316e5c79a53aaab6c827d69e57efd28e1b03503 # Parent 1cf504b5e62afe975338e6b4f693479b69af0860 Don't crash trying to modify the settings for an account where the prpl is no longer available diff -r 1cf504b5e62a -r 3316e5c79a53 finch/gntaccount.c --- a/finch/gntaccount.c Wed Aug 05 16:11:20 2009 +0000 +++ b/finch/gntaccount.c Thu Aug 06 01:05:11 2009 +0000 @@ -489,6 +489,7 @@ GntWidget *combo, *button, *entry; GList *list, *iter; AccountEditDialog *dialog; + PurplePlugin *plugin; if (account) { @@ -532,9 +533,10 @@ ((PurplePlugin*)iter->data)->info->name); } - if (account) - gnt_combo_box_set_selected(GNT_COMBO_BOX(combo), - purple_plugins_find_with_id(purple_account_get_protocol_id(account))); + plugin = purple_plugins_find_with_id(purple_account_get_protocol_id(account)); + + if (account && plugin) + gnt_combo_box_set_selected(GNT_COMBO_BOX(combo), plugin); else gnt_combo_box_set_selected(GNT_COMBO_BOX(combo), list->data);