From 958e4e08d9d74e31edf06d8605f702bc63f21556 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 6c890cc4a7cde..904d24161a60d 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -679,7 +679,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();