Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallexzander <blackslayer4@gmail.com>2021-03-31 17:19:01 +0300
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>2021-04-07 12:08:02 +0300
commit3906ae09228af393f08cfea6a05b516f7880eaaa (patch)
tree3981af3a91309ebe22ee225051dd8a34fe5525a5 /src/libsync/discovery.cpp
parent7235c708dced0e4c6262e8ac3fae23d9e303b609 (diff)
Another way to fix this.
Signed-off-by: allexzander <blackslayer4@gmail.com>
Diffstat (limited to 'src/libsync/discovery.cpp')
-rw-r--r--src/libsync/discovery.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp
index 47b4f2cf5..a24cb4d68 100644
--- a/src/libsync/discovery.cpp
+++ b/src/libsync/discovery.cpp
@@ -510,11 +510,13 @@ void ProcessDirectoryJob::processFileAnalyzeRemoteInfo(
&& item->_type == ItemTypeFile
&& opts._vfs->mode() != Vfs::Off
&& _pinState != PinState::AlwaysLocal
-#ifdef Q_OS_WIN
- && !FileSystem::isLnkFile(path._server)
-#endif
) {
item->_type = ItemTypeVirtualFile;
+#ifdef Q_OS_WIN
+ if(FileSystem::isLnkFile(path._server)) {
+ item->_type = ItemTypeVirtualFileDownload;
+ }
+#endif
if (isVfsWithSuffix())
addVirtualFileSuffix(tmp_path._original);
}