Commit 235e6f6f authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

fix: Dolphin doesn't fully quit after Compress from context menu

deleteLater() doesn't work if no event loop is run for the thread

BUG: 441813


(cherry picked from commit 3c563880)
parent 167f9e3e
......@@ -487,6 +487,8 @@ void CreateJob::doWork()
if (m_addJob) {
connect(m_addJob, &KJob::result, this, &CreateJob::emitResult);
// as autoDelete doesn't work for jobs outside of a QEventLoop
connect(m_addJob, &KJob::finished, this, [this] {delete m_addJob;});
// Forward description signal from AddJob, we need to change the first argument ('this' needs to be a CreateJob).
connect(m_addJob, &KJob::description, this, [=](KJob *, const QString &title, const QPair<QString,QString> &field1, const QPair<QString,QString> &) {
Q_EMIT description(this, title, field1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment