1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

Currently RawDatabase::execLater sometimes executes dependent statements
synchronously.
Qt::QueuedConnection ensures they are really executed later.
This commit is contained in:
Yuri 2017-03-02 15:19:07 -08:00
parent db2e2d7ab7
commit 54fb9f73cc

View File

@ -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);
}
/**