From 315524e15da36da523ccbf701c061fbb5a5d34ec Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 20 Jun 2016 18:18:55 +0200 Subject: Fix cache update on removal --- common/typeindex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/typeindex.cpp') 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 const auto value = bufferAdaptor.getProperty(property); // FIXME don't always convert to byte array const auto data = getByteArray(value); - if (data.isEmpty()) { + if (!data.isEmpty()) { Index(indexName(property), transaction).remove(data, identifier); } } -- cgit v1.2.3