aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-11 16:39:38 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 01:45:59 +0800
commit3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720 (patch)
treed9e1e50c4d00415e1975187c47a102a687cf7131 /libempathy-gtk
parenteb2ef7bb98d193402e372efba43a7212d8e5127c (diff)
downloadgsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar
gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar.gz
gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar.bz2
gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar.lz
gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar.xz
gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar.zst
gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.zip
LogWindow: don't crash when searching
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files 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);