summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-01-31 17:43:06 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-02-02 22:22:38 +0100
commit5a0846c7d276fca4fffc8f98c3223c52bb7c818c (patch)
tree1ecda102f7cdd87a1e8061b05ac00c24910d8a56
parentfe3ee68db3409ba04b20a3192bd064250f1412ca (diff)
downloadnautilus-5a0846c7d276fca4fffc8f98c3223c52bb7c818c.tar.gz
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.
-rw-r--r--src/nautilus-query-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 4afb1ca3b..32df2d9ae 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) {