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.
This commit is contained in:
Matthias Clasen 2015-07-24 15:37:03 -04:00
parent 71b3e0b66b
commit 48c172f4e0

View File

@ -7211,6 +7211,8 @@ search_start_query (GtkFileChooserWidget *impl,
gtk_query_set_location (priv->search_query, file); gtk_query_set_location (priv->search_query, file);
g_object_unref (file); g_object_unref (file);
} }
else
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_model (priv->search_engine, priv->model_for_search);
_gtk_search_engine_set_query (priv->search_engine, priv->search_query); _gtk_search_engine_set_query (priv->search_engine, priv->search_query);