aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-28 18:55:50 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-28 18:55:50 +0800
commitb444be51ecdb518760e10720642304d493a213e4 (patch)
treea47b61723baddead800a9b993302d5a62d6d4caa /libempathy-gtk
parentbd853be24c211660dc8d6e3ec327533335fe036c (diff)
downloadgsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.tar
gsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.tar.gz
gsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.tar.bz2
gsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.tar.lz
gsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.tar.xz
gsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.tar.zst
gsoc2013-empathy-b444be51ecdb518760e10720642304d493a213e4.zip
Fix a crash in the log window when there is no account. Fixes bug #562071.
svn path=/trunk/; revision=1924
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files changed, 5 insertions, 0 deletions
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);