From 48c172f4e02090fe85efdf80666c1355b1a8293b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 24 Jul 2015 15:37:03 -0400 Subject: [PATCH] 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. --- gtk/gtkfilechooserwidget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 4b0a2d7137..9c51220310 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -7211,6 +7211,8 @@ search_start_query (GtkFileChooserWidget *impl, gtk_query_set_location (priv->search_query, 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_query (priv->search_engine, priv->search_query);