aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2010-07-28 23:49:44 +0800
committerFelix Kaser <f.kaser@gmx.net>2010-07-29 21:48:13 +0800
commit8b6f735f75f51774bce12eb64ad1ed4712289bbb (patch)
treede2244d205d69235ce37968a2339cc43da546bf8 /libempathy-gtk/empathy-individual-view.c
parent673b6d90189c65ef4d859e2a3139ce7c0cea1e49 (diff)
downloadgsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.tar
gsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.tar.gz
gsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.tar.bz2
gsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.tar.lz
gsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.tar.xz
gsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.tar.zst
gsoc2013-empathy-8b6f735f75f51774bce12eb64ad1ed4712289bbb.zip
added check for null before scroll to cell
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r--libempathy-gtk/empathy-individual-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 82d156265..d847ee549 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1363,8 +1363,11 @@ individual_view_search_hide_cb (EmpathyLiveSearch *search,
/* keep the selected contact visible */
gtk_tree_view_get_cursor (GTK_TREE_VIEW (view), &cursor_path, NULL);
- gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (view), cursor_path, NULL,
- FALSE, 0, 0);
+
+ if (cursor_path != NULL)
+ gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (view), cursor_path, NULL,
+ FALSE, 0, 0);
+
gtk_tree_path_free (cursor_path);
}