From: Brandon Date: Tue, 14 Jan 2020 19:28:11 +0000 (+0800) Subject: Correct wrong variable X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~418 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d10bc1bb1404c9f6bd7cc9ca7eea1dba5f1baf3b;p=nextcloud-desktop.git Correct wrong variable Signed-off-by: Brandon --- diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index 53ff1d7c2..b5780143b 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 (perm.hasPermission(RemotePermissions::IsShared) && file_stat->etag.isEmpty()) { + if (file_stat->remotePerm.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)