[nautilus/wip/csoriano/search-popover: 30/40] query-editor: update query location on query editor location



commit c90780aafda91ca8394291d0bf9e5187e5c9b258
Author: Carlos Soriano <csoriano gnome org>
Date:   Sun Jan 31 17:43:06 2016 +0100

    query-editor: update query location on query editor location
    
    We need to update it and create the query if it's not created already.
    In this way, when the user changes location the query and therefore
    the popover will acknowledge it and update its widgets.

 src/nautilus-query-editor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 4b24122..58c6315 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -530,8 +530,8 @@ 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);
+        create_and_get_query (editor);
+        nautilus_query_set_location (priv->query, priv->location);
 
         /* Update label if needed */
         if (priv->location) {


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