diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-20 18:18:55 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-20 18:18:55 +0200 |
commit | 315524e15da36da523ccbf701c061fbb5a5d34ec (patch) | |
tree | b9b0735d22f38d46f4ee3a8150226e0119cf5534 /common/typeindex.cpp | |
parent | 5475eab39364c7608e1a34504401ff09e3b80726 (diff) | |
download | sink-315524e15da36da523ccbf701c061fbb5a5d34ec.tar.gz sink-315524e15da36da523ccbf701c061fbb5a5d34ec.zip |
Fix cache update on removal
Diffstat (limited to 'common/typeindex.cpp')
-rw-r--r-- | common/typeindex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp index 8d1b7f3..1a50bfe 100644 --- a/common/typeindex.cpp +++ b/common/typeindex.cpp | |||
@@ -125,7 +125,7 @@ void TypeIndex::remove(const QByteArray &identifier, const Sink::ApplicationDoma | |||
125 | const auto value = bufferAdaptor.getProperty(property); | 125 | const auto value = bufferAdaptor.getProperty(property); |
126 | // FIXME don't always convert to byte array | 126 | // FIXME don't always convert to byte array |
127 | const auto data = getByteArray(value); | 127 | const auto data = getByteArray(value); |
128 | if (data.isEmpty()) { | 128 | if (!data.isEmpty()) { |
129 | Index(indexName(property), transaction).remove(data, identifier); | 129 | Index(indexName(property), transaction).remove(data, identifier); |
130 | } | 130 | } |
131 | } | 131 | } |