diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 7bfdeb3ddca0b..bd368db096cdf 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -905,8 +905,8 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( const bool isFolderPlaceholder = localEntry.isDirectory && *_discoveryData->_syncOptions._vfs->availability(path._local) == VfsItemAvailability::OnlineOnly; Q_ASSERT(item->_instruction == CSYNC_INSTRUCTION_NEW); - if (item->_instruction == CSYNC_INSTRUCTION_NEW) { - qCWarning(lcDisco) << "Wiping virtual file without db entry for" << path._local; + if (item->_instruction != CSYNC_INSTRUCTION_NEW) { + qCWarning(lcDisco) << "Wiping virtual file without db entry for" << path._local << ". But, item->_instruction is" << item->_instruction; } // must be a file placeholder or an online-only folder placeholder