diff options
Diffstat (limited to 'hildon/hildon-live-search.c')
-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)); |