summaryrefslogtreecommitdiffstats
path: root/common/storage_lmdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r--common/storage_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index c02d523..23df0fc 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -227,7 +227,7 @@ int Storage::Transaction::scan(const QByteArray &k,
227void Storage::Transaction::remove(const QByteArray &k, 227void Storage::Transaction::remove(const QByteArray &k,
228 const std::function<void(const Storage::Error &error)> &errorHandler) 228 const std::function<void(const Storage::Error &error)> &errorHandler)
229{ 229{
230 if (!d) { 230 if (!d || !d->transaction) {
231 Error error(d->name.toLatin1(), ErrorCodes::GenericError, "Not open"); 231 Error error(d->name.toLatin1(), ErrorCodes::GenericError, "Not open");
232 errorHandler ? errorHandler(error) : d->defaultErrorHandler(error); 232 errorHandler ? errorHandler(error) : d->defaultErrorHandler(error);
233 return; 233 return;