[nautilus/wip/csoriano/search-popover: 23/43] query-editor: update query location



commit b194ad693cc27caf105eae996801462907903623
Author: Carlos Soriano <csoriano gnome org>
Date:   Fri Jan 29 14:24:28 2016 +0100

    query-editor: update query location
    
    We need to update the query location when the user changes
    the location and the slot acknowledge it.
    If we don't do it, next time a search is done the simple engine will use
    the previous location.

 src/nautilus-query-editor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index df734cf..cae6329 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -532,6 +532,9 @@ nautilus_query_editor_set_location (NautilusQueryEditor *editor,
                 should_notify = g_set_object (&priv->location, location);
         }
 
+        if (priv->query)
+            nautilus_query_set_location (priv->query, priv->location);
+
         /* Update label if needed */
         if (priv->location) {
                 NautilusFile *file;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]