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



commit 19e63049f09641bda78889d1ae01cbefadf11ed3
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 025bf3f..274718a 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]