mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
QueuedConnection per CR feedback
This commit is contained in:
parent
dfb1619dc6
commit
31cdd5cca2
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public:
|
||||||
Q_INVOKABLE void executeOnPromiseThread(std::function<void()> function) {
|
Q_INVOKABLE void executeOnPromiseThread(std::function<void()> function) {
|
||||||
if (QThread::currentThread() != thread()) {
|
if (QThread::currentThread() != thread()) {
|
||||||
QMetaObject::invokeMethod(
|
QMetaObject::invokeMethod(
|
||||||
this, "executeOnPromiseThread", Qt::BlockingQueuedConnection,
|
this, "executeOnPromiseThread", Qt::QueuedConnection,
|
||||||
Q_ARG(std::function<void()>, function));
|
Q_ARG(std::function<void()>, function));
|
||||||
} else {
|
} else {
|
||||||
function();
|
function();
|
||||||
|
|
Loading…
Reference in a new issue