From 60624d233d7a7ea3a49b9c0e0758579627304ae2 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 28 Nov 2008 10:57:21 +0000 Subject: Fix previous commit. Oops. svn path=/trunk/; revision=1925 --- libempathy-gtk/empathy-log-window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index e11a59cd5..b0bfe759c 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -623,16 +623,16 @@ log_window_chats_populate (EmpathyLogWindow *window) account_chooser = EMPATHY_ACCOUNT_CHOOSER (window->account_chooser_chats); account = empathy_account_chooser_get_account (account_chooser); - if (account == NULL) { - gtk_list_store_clear (store); - return; - } - view = GTK_TREE_VIEW (window->treeview_chats); model = gtk_tree_view_get_model (view); selection = gtk_tree_view_get_selection (view); store = GTK_LIST_STORE (model); + if (account == NULL) { + gtk_list_store_clear (store); + return; + } + /* Block signals to stop the logs being retrieved prematurely */ g_signal_handlers_block_by_func (selection, log_window_chats_changed_cb, -- cgit v1.2.3