# HG changeset patch # User Elliott Sales de Andrade # Date 1338443128 0 # Node ID 43e89b279eb420175f8e8c1e0561c848f02f9e86 # Parent 3d69d8e964a3b9e8807993266ec3dd481eca6c45 No need to search for accounts when we already have a list of them. diff -r 3d69d8e964a3 -r 43e89b279eb4 pidgin/plugins/xmppconsole.c --- a/pidgin/plugins/xmppconsole.c Thu May 31 05:38:31 2012 +0000 +++ b/pidgin/plugins/xmppconsole.c Thu May 31 05:45:28 2012 +0000 @@ -755,12 +755,7 @@ if (!console) return; - account = purple_accounts_find(gtk_combo_box_get_active_text(GTK_COMBO_BOX(console->dropdown)), - "prpl-jabber"); - if (!account || !purple_account_get_connection(account)) - return; - - console->gc = purple_account_get_connection(account); + console->gc = g_list_nth_data(console->accounts, gtk_combo_box_get_active(GTK_COMBO_BOX(console->dropdown))); gtk_webview_load_html_string(GTK_WEBVIEW(console->webview), EMPTY_HTML); }