mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +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) {
|
||||
if (QThread::currentThread() != thread()) {
|
||||
QMetaObject::invokeMethod(
|
||||
this, "executeOnPromiseThread", Qt::BlockingQueuedConnection,
|
||||
this, "executeOnPromiseThread", Qt::QueuedConnection,
|
||||
Q_ARG(std::function<void()>, function));
|
||||
} else {
|
||||
function();
|
||||
|
|
Loading…
Reference in a new issue