[nautilus/wip/csoriano/search-popover: 16/29] query-editor: update query location on query editor location



commit 5a0846c7d276fca4fffc8f98c3223c52bb7c818c
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 4afb1ca..32df2d9 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -527,8 +527,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]