diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-24 15:37:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-27 08:07:38 -0400 |
commit | 48c172f4e02090fe85efdf80666c1355b1a8293b (patch) | |
tree | ca502f0834eeb8702f930e24cef035a13ee2696a /gtk/gtkfilechooserwidget.c | |
parent | 71b3e0b66b9a9b14ac7e87fdb019e50e4bd23148 (diff) | |
download | gtk+-48c172f4e02090fe85efdf80666c1355b1a8293b.tar.gz |
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.
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |