From a725caa3c5d33b0e7ecab6395b6790d88a9308c6 Mon Sep 17 00:00:00 2001 From: Gabriel Millaire Date: Fri, 8 May 2009 10:15:20 -0400 Subject: Fix bug #579484: Join Chatroom dialog doesn't list rooms when changing account By remembering to start listing rooms when the channel is ready. --- src/empathy-new-chatroom-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/empathy-new-chatroom-dialog.c') diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c index 1861993e8..67f870fbc 100644 --- a/src/empathy-new-chatroom-dialog.c +++ b/src/empathy-new-chatroom-dialog.c @@ -388,6 +388,7 @@ new_chatroom_dialog_account_changed_cb (GtkComboBox *combobox, EmpathyAccountChooser *account_chooser; McAccount *account; gboolean listing = FALSE; + gboolean expanded = FALSE; if (dialog->room_list) { g_object_unref (dialog->room_list); @@ -411,6 +412,11 @@ new_chatroom_dialog_account_changed_cb (GtkComboBox *combobox, G_CALLBACK (new_chatroom_dialog_listing_cb), dialog); + expanded = gtk_expander_get_expanded (GTK_EXPANDER (dialog->expander_browse)); + if (expanded) { + new_chatroom_dialog_browse_start (dialog); + } + listing = empathy_tp_roomlist_is_listing (dialog->room_list); if (listing) { ephy_spinner_start (EPHY_SPINNER (dialog->throbber)); -- cgit v1.2.3