From 18a88fcecf7e76627dccd30f040f3971d7cc5809 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 14 Jan 2020 17:19:40 +0800 Subject: [PATCH] Correct wrong variable Signed-off-by: Brandon Signed-off-by: Brandon --- src/libsync/discoveryphase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index 276751537..53ff1d7c2 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -384,7 +384,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con propertyMapToFileStat(map, file_stat.get()); if (file_stat->type == ItemTypeDirectory) file_stat->size = 0; - if (remotePerm.hasPermission(RemotePermissions::IsShared) && file_stat->etag.isEmpty()) { + if (perm.hasPermission(RemotePermissions::IsShared) && file_stat->etag.isEmpty()) { /* Handle broken shared file error gracefully instead of stopping sync in the desktop client. DO not set _error */ qCWarning(lcDiscovery)