From: Matthieu Gallien Date: Tue, 5 Nov 2024 15:29:53 +0000 (+0100) Subject: use proper item type when converting existing windows shortcuts X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~5^2~13^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3c021166fadddc2eaea4d8584a780b1972f6d392;p=nextcloud-desktop.git use proper item type when converting existing windows shortcuts we need to make shortcut files be proper virtual placeholder files let the sync engine use the proper item type for that Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 7300a4c5f..3fe2fb2d8 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1193,11 +1193,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( item->_direction = SyncFileItem::Down; item->_instruction = CSYNC_INSTRUCTION_SYNC; const auto pinState = _discoveryData->_syncOptions._vfs->pinState(path._local); - if (FileSystem::isLnkFile(path._local) && !_discoveryData->_syncOptions._vfs->pinState(path._local).isValid()) { - item->_type = ItemTypeVirtualFileDownload; - } else { - item->_type = ItemTypeVirtualFileDehydration; - } + item->_type = ItemTypeVirtualFileDehydration; } else if (!serverModified && (dbEntry._inode != localEntry.inode || (localEntry.isMetadataMissing && item->_type == ItemTypeFile && !FileSystem::isLnkFile(item->_file))