aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-chatroom-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 08c36d926..1ce7a6e5d 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -521,10 +521,11 @@ chatroom_manager_remove_link (EmpathyChatroomManager *manager,
if (empathy_chatroom_is_favorite (chatroom))
reset_save_timeout (manager);
+ priv->chatrooms = g_list_delete_link (priv->chatrooms, l);
+
g_signal_emit (manager, signals[CHATROOM_REMOVED], 0, chatroom);
g_signal_handlers_disconnect_by_func (chatroom, chatroom_changed_cb, manager);
- priv->chatrooms = g_list_delete_link (priv->chatrooms, l);
g_object_unref (chatroom);
}