diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-16 10:29:27 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-16 10:39:59 +0100 |
commit | 768c1077b0d226d832f34904e929c2462eca158f (patch) | |
tree | 62ebe65b534ce4028ff24f29a0824540810179ff /common/storage/entitystore.cpp | |
parent | 80f8c4a48b8cbb359c4efdb9a13485bf86b4d1ed (diff) | |
download | sink-768c1077b0d226d832f34904e929c2462eca158f.tar.gz sink-768c1077b0d226d832f34904e929c2462eca158f.zip |
Remember whether a blob property is external or not.
...we used to accidentally move external blobs after the property was
lost when storing the modificatoin in the queue.
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r-- | common/storage/entitystore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 51e5da7..9156dd4 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -162,6 +162,7 @@ void EntityStore::copyBlobs(ApplicationDomain::ApplicationDomainType &entity, qi | |||
162 | SinkWarningCtx(d->logCtx) << "Failed to move the file from: " << oldPath << " to " << filePath << ". " << origFile.errorString(); | 162 | SinkWarningCtx(d->logCtx) << "Failed to move the file from: " << oldPath << " to " << filePath << ". " << origFile.errorString(); |
163 | } | 163 | } |
164 | origFile.close(); | 164 | origFile.close(); |
165 | SinkTraceCtx(d->logCtx) << "Moved blob property: " << property << " from " << oldPath << "to" << filePath; | ||
165 | entity.setProperty(property, QVariant::fromValue(ApplicationDomain::BLOB{filePath})); | 166 | entity.setProperty(property, QVariant::fromValue(ApplicationDomain::BLOB{filePath})); |
166 | } | 167 | } |
167 | } | 168 | } |