From 3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 11 Jul 2011 09:39:38 +0100 Subject: LogWindow: don't crash when searching --- libempathy-gtk/empathy-log-window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 80728a38f..c2a9c7897 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -1947,8 +1947,9 @@ log_window_update_what_sensitivity (EmpathyLogWindow *self) GList *accounts, *targets, *acc, *targ; gboolean next; - log_window_get_selected (self, &accounts, &targets, NULL, NULL, - NULL, NULL); + if (!log_window_get_selected (self, &accounts, &targets, NULL, NULL, + NULL, NULL)) + return; view = GTK_TREE_VIEW (self->priv->treeview_what); model = gtk_tree_view_get_model (view); -- cgit v1.2.3