diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2010-06-15 13:46:34 +0300 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2010-06-15 13:46:34 +0300 |
commit | a839e9363a9099518d9fb046aae27d293a50de93 (patch) | |
tree | cd97b6603c6645edc4feeb7c97323a21e15def1e | |
parent | 016c752f2fd7b7bb90567e595b21430d855c02d6 (diff) |
Do not destroy the mapping until the filtering is actually done
-rw-r--r-- | hildon/hildon-live-search.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c index 7e4e861..922c5ad 100644 --- a/hildon/hildon-live-search.c +++ b/hildon/hildon-live-search.c @@ -410,6 +410,10 @@ static gboolean on_idle_refilter (HildonLiveSearch *livesearch) { refilter (livesearch); + + if (livesearch->priv->prefix == NULL) + selection_map_destroy (livesearch->priv); + livesearch->priv->idle_filter_id = 0; return FALSE; @@ -442,7 +446,6 @@ on_entry_changed (GtkEntry *entry, /* Show the livesearch only if there is text in it */ if (priv->prefix == NULL) { - selection_map_destroy (priv); gtk_widget_hide (GTK_WIDGET (livesearch)); } else { gtk_widget_show (GTK_WIDGET (livesearch)); |