empathy r1924 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Nov 28 10:55:50 2008
New Revision: 1924
URL: http://svn.gnome.org/viewvc/empathy?rev=1924&view=rev

Log:
Fix a crash in the log window when there is no account. Fixes bug #562071.

Modified:
   trunk/libempathy-gtk/empathy-log-window.c

Modified: trunk/libempathy-gtk/empathy-log-window.c
==============================================================================
--- trunk/libempathy-gtk/empathy-log-window.c	(original)
+++ trunk/libempathy-gtk/empathy-log-window.c	Fri Nov 28 10:55:50 2008
@@ -623,6 +623,11 @@
 	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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]