summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus-private/nautilus-file.c')
-rw-r--r--libnautilus-private/nautilus-file.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 1d36b088a..6807cad3b 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -7012,7 +7012,11 @@ nautilus_file_is_remote (NautilusFile *file)
{
g_assert (NAUTILUS_IS_FILE (file));
- return nautilus_directory_is_remote (file->details->directory);
+ if (nautilus_file_is_directory (file))
+ return nautilus_directory_is_remote (nautilus_directory_get_for_file (file));
+ else
+ return nautilus_directory_is_remote (file->details->directory);
+
}
/**