aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbner Silva <abner.silva@collabora.co.uk>2009-06-30 00:49:52 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-01 21:37:17 +0800
commit8caba0f8e3f7d48881572d456ef4f92a4637c272 (patch)
treebc42977da2b8ca2a8b04c3c5b83923c9238da822
parent0a41b6b31705626c71047261b91afdac711dead7 (diff)
downloadgsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.tar
gsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.tar.gz
gsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.tar.bz2
gsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.tar.lz
gsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.tar.xz
gsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.tar.zst
gsoc2013-empathy-8caba0f8e3f7d48881572d456ef4f92a4637c272.zip
Removing chatroom from the list before emmiting chatroom-removed signal.
-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);
}