From 87517e5028484128fd7ba097ffe40b47e958f1ac Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 17 Oct 2024 23:15:37 +0200 Subject: [PATCH] in debug release, wiping out a stale virtual file should not happen use Q_ASSERT to detect any wiping out of virtual files if that would ever happen Signed-off-by: Matthieu Gallien --- src/libsync/discovery.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index ee7f7ae3a847a..29acbc67b438b 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1355,6 +1355,8 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( << "but looks odd, keeping"; item->_instruction = CSYNC_INSTRUCTION_IGNORE; + Q_ASSERT(false); + return; } @@ -1376,6 +1378,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( item->_direction = SyncFileItem::Down; // this flag needs to be unset, otherwise a folder would get marked as new in the processSubJobs _childModified = false; + Q_ASSERT(false); }; // Check if it is a move