Actually use search results from the model

We didn't connect to the signals, so we never picked up
any search results from the model engine. Good thing, since
it was returning the wrong thing.
This commit is contained in:
Matthias Clasen 2015-07-24 15:44:20 -04:00
parent 1069e2b9cc
commit 30de4cc7bb

View File

@ -481,6 +481,7 @@ _gtk_search_engine_set_model (GtkSearchEngine *engine,
if (model)
{
engine->priv->model = _gtk_search_engine_model_new (model);
connect_engine_signals (engine->priv->model, engine);
if (engine->priv->query)
_gtk_search_engine_set_query (engine->priv->model, engine->priv->query);
}