]> git.0d.be Git - empathy.git/commitdiff
empathy_chatroom_manager_remove: when looking for the chatroom to remove check the...
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:55:41 +0000 (07:55 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:55:41 +0000 (07:55 +0000)
svn path=/trunk/; revision=1579

libempathy/empathy-chatroom-manager.c

index 96dd8dd4c48f2bb038696064016d4619337a72a5..3c2eb66bb553c9e26537b9594ca3a22546c9c052 100644 (file)
@@ -351,7 +351,8 @@ empathy_chatroom_manager_remove (EmpathyChatroomManager *manager,
 
                this_chatroom = l->data;
 
-               if (empathy_chatroom_equal (chatroom, this_chatroom)) {
+               if (this_chatroom == chatroom ||
+        empathy_chatroom_equal (chatroom, this_chatroom)) {
         gboolean favorite;
                        priv->chatrooms = g_list_delete_link (priv->chatrooms, l);