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



commit 1f7b075d867625418a2f5d8132df3979b486700a
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]