summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/domain/applicationdomaintype.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp
index f00f3ed..42ae11a 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -50,6 +50,8 @@ void copyBuffer(Sink::ApplicationDomain::BufferAdaptor &buffer, Sink::Applicatio
50 const auto value = buffer.getProperty(property); 50 const auto value = buffer.getProperty(property);
51 if (copyBlobs && value.canConvert<BLOB>()) { 51 if (copyBlobs && value.canConvert<BLOB>()) {
52 auto oldPath = value.value<BLOB>().value; 52 auto oldPath = value.value<BLOB>().value;
53 //FIXME: This is neither pretty nor save if we have multiple modifications of the same property (the first modification will remove the file).
54 //At least if the modification fails the file will be removed once the entity is removed.
53 auto newPath = oldPath + "copy"; 55 auto newPath = oldPath + "copy";
54 QFile::copy(oldPath, newPath); 56 QFile::copy(oldPath, newPath);
55 memoryAdaptor.setProperty(property, QVariant::fromValue(BLOB{newPath})); 57 memoryAdaptor.setProperty(property, QVariant::fromValue(BLOB{newPath}));