aboutsummaryrefslogtreecommitdiff
path: root/hildon
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2010-05-07 20:08:36 +0300
committerClaudio Saavedra <csaavedra@igalia.com>2010-05-07 20:08:36 +0300
commit594a1d3fce14da9a6009637c26a4e7a3587c46c7 (patch)
tree89d8ced92f096e466f2bae2dd5195ee6d9a6026e /hildon
parent89966f67356edfdd1eb948c4c5c965e78545fd27 (diff)
Fix a critical warning
Need to remove a row reference from the hash table when it's no longer in the model.
Diffstat (limited to 'hildon')
-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;