aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-live-search.c
diff options
context:
space:
mode:
Diffstat (limited to 'hildon/hildon-live-search.c')
-rw-r--r--hildon/hildon-live-search.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c
index fd5feb6..2382999 100644
--- a/hildon/hildon-live-search.c
+++ b/hildon/hildon-live-search.c
@@ -212,7 +212,13 @@ row_reference_is_not_selected (GtkTreeRowReference *row_ref,
GtkTreeSelection *selection = gtk_tree_view_get_selection (
GTK_TREE_VIEW (priv->kb_focus_widget));
GtkTreePath *base_path = gtk_tree_row_reference_get_path (row_ref);
- GtkTreePath *filter_path = gtk_tree_model_filter_convert_child_path_to_path
+ GtkTreePath *filter_path;
+
+ if (base_path == NULL) {
+ return TRUE;
+ }
+
+ filter_path = gtk_tree_model_filter_convert_child_path_to_path
(priv->filter, base_path);
GtkTreePath *view_path;
gboolean ret;