file chooser: Don't crawl recent://

This is unnecessary - all the recent files are in the model already.
It also leads to duplicates, since our duplicate filtering is based
on g_file_equal, which does not consider recent:///blabla with
target-uri=/my/example to be the same as file:///my/example.
This commit is contained in:
Matthias Clasen 2015-07-30 14:03:17 -04:00
parent 7d91ca3183
commit ec338b0ab6

View File

@ -92,7 +92,8 @@ static void
queue_if_local (SearchThreadData *data,
GFile *file)
{
if (!_gtk_file_consider_as_remote (file))
if (!_gtk_file_consider_as_remote (file) &&
!g_file_has_uri_scheme (file, "recent"))
g_queue_push_tail (data->directories, g_object_ref (file));
}