mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
use deleteLater immediately not that finish is right thread
This commit is contained in:
parent
8f5212acac
commit
3b56df6e99
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ void AudioInjector::finish() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldDelete) {
|
if (shouldDelete) {
|
||||||
// we've been asked to delete after finishing, trigger a queued deleteLater here
|
// we've been asked to delete after finishing, trigger a deleteLater here
|
||||||
QMetaObject::invokeMethod(this, "deleteLater", Qt::QueuedConnection);
|
deleteLater();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue