Browse Source

fix(db): Made RawDatabase::execLater executes statements asynchronously.

Currently RawDatabase::execLater sometimes executes dependent statements
synchronously.
Qt::QueuedConnection ensures they are really executed later.
pull/4230/head
Yuri 9 years ago
parent
commit
54fb9f73cc
  1. 2
      src/persistence/db/rawdatabase.cpp

2
src/persistence/db/rawdatabase.cpp

@ -294,7 +294,7 @@ void RawDatabase::execLater(const QVector<RawDatabase::Query>& statements) @@ -294,7 +294,7 @@ void RawDatabase::execLater(const QVector<RawDatabase::Query>& statements)
pendingTransactions.enqueue(trans);
}
QMetaObject::invokeMethod(this, "process");
QMetaObject::invokeMethod(this, "process", Qt::QueuedConnection);
}
/**

Loading…
Cancel
Save