From a89a84ff14565f09bca5909ccbfe163919a21038 Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Fri, 11 Jun 2021 12:50:28 +0200 Subject: [PATCH] Mark placeholder in sync after updating the placeholder Fixes #3403 #3082 #3391 Signed-off-by: Felix Weilbach --- src/libsync/vfs/cfapi/cfapiwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.cpp b/src/libsync/vfs/cfapi/cfapiwrapper.cpp index 7b6eab635..a1c881369 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -677,7 +677,7 @@ OCC::Result OCC::CfApiWrapper::updatePlaceholderInfo(const FileHa const qint64 result = CfUpdatePlaceholder(handle.get(), &metadata, fileIdentity.data(), sizeToDWORD(fileIdentitySize), - nullptr, 0, CF_UPDATE_FLAG_NONE, nullptr, nullptr); + nullptr, 0, CF_UPDATE_FLAG_MARK_IN_SYNC, nullptr, nullptr); if (result != S_OK) { qCWarning(lcCfApiWrapper) << "Couldn't update placeholder info for" << pathForHandle(handle) << ":" << _com_error(result).ErrorMessage();