diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-11 16:39:38 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-12 01:45:59 +0800 |
commit | 3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720 (patch) | |
tree | d9e1e50c4d00415e1975187c47a102a687cf7131 /libempathy-gtk | |
parent | eb2ef7bb98d193402e372efba43a7212d8e5127c (diff) | |
download | gsoc2013-empathy-3a19d359f1cae8b2b4e6b4c31aaa193bd31a8720.tar.gz 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.c | 5 |
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); |