summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2016-11-15 18:19:31 (GMT)
committerElvis Angelaccio <elvis.angelaccio@kde.org>2016-11-15 18:22:07 (GMT)
commit0e1653f48acd7df64c8d461235b93269aea69055 (patch)
tree1ad6603bb063af90281f31c4c218ffd501968355
parent046b209258456a2e81b1c06e3b6601a4f77432f8 (diff)
Fix description signal regression in CreateJob
The AddJob's description is now visible again in the system tray when creating archives from Dolphin. Differential Revision: D3371
-rw-r--r--kerfuffle/jobs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kerfuffle/jobs.cpp b/kerfuffle/jobs.cpp
index 13fd955..4786863 100644
--- a/kerfuffle/jobs.cpp
+++ b/kerfuffle/jobs.cpp
@@ -438,6 +438,11 @@ void CreateJob::doWork()
if (addJob) {
connect(addJob, &KJob::result, this, &CreateJob::emitResult);
+ // Forward description signal from AddJob, we need to change the first argument ('this' needs to be a CreateJob).
+ connect(addJob, &KJob::description, this, [=](KJob *, const QString &title, const QPair<QString,QString> &field1, const QPair<QString,QString> &) {
+ emit description(this, title, field1);
+ });
+
addJob->start();
} else {
emitResult();