[nautilus/wip/csoriano/search-popover: 9/29] query-editor: update query location
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/search-popover: 9/29] query-editor: update query location
- Date: Tue, 2 Feb 2016 21:24:43 +0000 (UTC)
commit 795c0402155f883de8316cff6fc7835e9f3ea14e
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Jan 29 14:24:28 2016 +0100
query-editor: update query location
We need to update the query location when the user changes
the location and the slot acknowledge it.
If we don't do it, next time a search is done the simple engine will use
the previous location.
src/nautilus-query-editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 22aa490..4ff13ca 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -529,6 +529,9 @@ 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);
+
/* Update label if needed */
if (priv->location) {
NautilusFile *file;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]