summaryrefslogtreecommitdiff
path: root/src/nautilus-bookmark-list.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-03-29 15:08:38 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-03-30 09:59:59 +0200
commit15524454beebaaa08fdf08e4b06fa4bf8c095cc6 (patch)
tree109a52669344b89a1a887eeb79025b55abb4be26 /src/nautilus-bookmark-list.c
parent99bb990da72745c559a174f9a3e45788d38ab411 (diff)
downloadnautilus-15524454beebaaa08fdf08e4b06fa4bf8c095cc6.tar.gz
bookmarks: don't allow bookmarking search
With the latest redesign of the search, there is not much point to bookmark a search, and instead, make the search again. Anyway, maybe it makes sense if we create a more complex search engine, but we can add support for it in the future, when it's needed.
Diffstat (limited to 'src/nautilus-bookmark-list.c')
-rw-r--r--src/nautilus-bookmark-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-bookmark-list.c b/src/nautilus-bookmark-list.c
index b62414ab9..e01125427 100644
--- a/src/nautilus-bookmark-list.c
+++ b/src/nautilus-bookmark-list.c
@@ -569,6 +569,10 @@ nautilus_bookmark_list_can_bookmark_location (NautilusBookmarkList *list,
return FALSE;
}
+ if (nautilus_is_search_directory (location)) {
+ return FALSE;
+ }
+
bookmark = nautilus_bookmark_new (location, NULL);
is_builtin = nautilus_bookmark_get_is_builtin (bookmark);
g_object_unref (bookmark);