From b444be51ecdb518760e10720642304d493a213e4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 28 Nov 2008 10:55:50 +0000 Subject: Fix a crash in the log window when there is no account. Fixes bug #562071. svn path=/trunk/; revision=1924 --- libempathy-gtk/empathy-log-window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index f1d958a30..e11a59cd5 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -623,6 +623,11 @@ 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); -- cgit v1.2.3