[nautilus/wip/csoriano/search-popover] 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] query-editor: update query location
- Date: Sun, 31 Jan 2016 11:31:48 +0000 (UTC)
commit e99a9d44e3270e89ee3a0f214046c8d5207d16a4
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 272c3b8..0bfe243 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]