diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 2423ed60f8..a24b13a7ca 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -332,6 +332,7 @@ void ProcessDirectoryJob::processFile(PathTuple path, // remote will be rediscovered. This is just a fallback for a similar check // in processFileAnalyzeRemoteInfo(). if (_queryServer == ParentNotChanged + && dbEntry.isValid() && (dbEntry._type == ItemTypeVirtualFileDownload || localEntry.type == ItemTypeVirtualFileDownload) && (localEntry.isValid() || _queryLocal == ParentNotChanged)) {