Skip to content

Commit 4f8ad0b

Browse files
committed
fix(vfs/windows): properly delete virtual folders to switch to classic
when we switch back to classic, all virtual items have to be deleted to get back to a clean state virtual folders would have been left as is causing issues Signed-off-by: Matthieu Gallien <[email protected]>
1 parent c7efc09 commit 4f8ad0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsync/syncengine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,8 +1354,9 @@ void SyncEngine::wipeVirtualFiles(const QString &localPath, SyncJournalDb &journ
13541354
{
13551355
qCInfo(lcEngine) << "Wiping virtual files inside" << localPath;
13561356
const auto resGetFilesBelowPath = journal.getFilesBelowPath(QByteArray(), [&](const SyncJournalFileRecord &rec) {
1357-
if (rec._type != ItemTypeVirtualFile && rec._type != ItemTypeVirtualFileDownload)
1357+
if (rec._type != ItemTypeVirtualFile && rec._type != ItemTypeVirtualFileDownload && rec._type != ItemTypeVirtualDirectory) {
13581358
return;
1359+
}
13591360

13601361
qCDebug(lcEngine) << "Removing db record for" << rec.path();
13611362
if (!journal.deleteFileRecord(rec._path)) {

0 commit comments

Comments
 (0)