forked from AuroraMiddleware/gtk
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:
parent
7d91ca3183
commit
ec338b0ab6
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user