diff options
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r-- | src/empathy-chat-window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 1df42f14a..9748b61c6 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -2158,12 +2158,12 @@ empathy_chat_window_remove_chat (EmpathyChatWindow *window, g_signal_handlers_disconnect_by_func (remote_contact, chat_window_update_chat_tab, chat); - - chat_manager = empathy_chat_manager_dup_singleton (); - empathy_chat_manager_closed_chat (chat_manager, remote_contact); - g_object_unref (chat_manager); } + chat_manager = empathy_chat_manager_dup_singleton (); + empathy_chat_manager_closed_chat (chat_manager, chat); + g_object_unref (chat_manager); + position = gtk_notebook_page_num (GTK_NOTEBOOK (priv->notebook), GTK_WIDGET (chat)); gtk_notebook_remove_page (GTK_NOTEBOOK (priv->notebook), position); |