]> git.0d.be Git - empathy.git/commitdiff
Fix a crash in the log window when there is no account. Fixes bug #562071.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 28 Nov 2008 10:55:50 +0000 (10:55 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 28 Nov 2008 10:55:50 +0000 (10:55 +0000)
svn path=/trunk/; revision=1924

libempathy-gtk/empathy-log-window.c

index f1d958a307e7dd042dcf51e70453c5e9b351b896..e11a59cd500b38c507ec7a55be4f32cb4bb223eb 100644 (file)
@@ -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);