Commit 48c172f4 authored by Matthias Clasen's avatar Matthias Clasen

Always pass a location into the query

Failure to do so was causing search to start from the home dir
when the current folder is not represented on the sidebar.
parent 71b3e0b6
......@@ -7211,6 +7211,8 @@ search_start_query (GtkFileChooserWidget *impl,
gtk_query_set_location (priv->search_query, file);
g_object_unref (file);
gtk_query_set_location (priv->search_query, priv->current_folder);
_gtk_search_engine_set_model (priv->search_engine, priv->model_for_search);
_gtk_search_engine_set_query (priv->search_engine, priv->search_query);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment