[nautilus/wip/csoriano/search-popover: 23/40] 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: 23/40] query-editor: update query location
- Date: Tue, 2 Feb 2016 17:42:54 +0000 (UTC)
commit 1aea264fdb4e53eb069bbb9f7d45091d4934290b
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 df734cf..cae6329 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -532,6 +532,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]