Correct wrong variable

Signed-off-by: Brandon <brandon.yeow@websparks.sg>
This commit is contained in:
Brandon 2020-01-15 03:28:11 +08:00 committed by Michael Schuster
parent 18a88fcecf
commit d10bc1bb14

View file

@ -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)