diff options
author | António Fernandes <antoniof@gnome.org> | 2020-05-16 14:51:19 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-01-25 10:54:11 +0000 |
commit | 8bc93539cb3899b7fed08370c32cc802f5b59c7b (patch) | |
tree | df5319287e9984218084c186019f2685581e029c /src/nautilus-directory.c | |
parent | 93ef35d814d6cfb3268f81ad786068fb83ec0c7a (diff) | |
download | nautilus-8bc93539cb3899b7fed08370c32cc802f5b59c7b.tar.gz |
directory: Revert bfd0b4bf02187b4da6ce0eb7c9a36df5d96ca649
That commit mixed the concepts of "file with local path", "local file",
and "native file". They are 3 different things, as documented in GIO.
Now, after the previous commits, the is_local() methods are no longer
employed to check that files have local paths. Instead, we now use
nautilus_file_is_local_or_fuse(), which was introduced[1] in order to
fix[2] for a regression caused by the commit we are now reverting.
[1] 2f1765d80392c06166d077c27a9a6661edd7c128
[2] 4df06e7f14ffefedc65bae84fca1cd7f5e945f78
Diffstat (limited to 'src/nautilus-directory.c')
-rw-r--r-- | src/nautilus-directory.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nautilus-directory.c b/src/nautilus-directory.c index 392a67fbc..499042e02 100644 --- a/src/nautilus-directory.c +++ b/src/nautilus-directory.c @@ -771,8 +771,7 @@ nautilus_directory_is_local (NautilusDirectory *directory) return TRUE; } - return nautilus_directory_is_in_recent (directory) || - g_file_is_native (directory->details->location); + return g_file_is_native (directory->details->location); } gboolean |