diff options
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 6539eb0..8b29681 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -156,8 +156,8 @@ void Storage::NamedDatabase::remove(const QByteArray &k, const QByteArray &value | |||
156 | const std::function<void(const Storage::Error &error)> &errorHandler) | 156 | const std::function<void(const Storage::Error &error)> &errorHandler) |
157 | { | 157 | { |
158 | if (!d || !d->transaction) { | 158 | if (!d || !d->transaction) { |
159 | Error error(d->name.toLatin1() + d->db, ErrorCodes::GenericError, "Not open"); | ||
160 | if (d) { | 159 | if (d) { |
160 | Error error(d->name.toLatin1() + d->db, ErrorCodes::GenericError, "Not open"); | ||
161 | errorHandler ? errorHandler(error) : d->defaultErrorHandler(error); | 161 | errorHandler ? errorHandler(error) : d->defaultErrorHandler(error); |
162 | } | 162 | } |
163 | return; | 163 | return; |