summaryrefslogtreecommitdiffstats
path: root/gui/taskdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/taskdialog.cpp')
-rw-r--r--gui/taskdialog.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/gui/taskdialog.cpp b/gui/taskdialog.cpp
index 9b1ddf23..a74b7718 100644
--- a/gui/taskdialog.cpp
+++ b/gui/taskdialog.cpp
@@ -45,14 +45,10 @@ void TaskDialog::exec(Task *task)
this->task = task;
// Connect signals.
- connect(task, SIGNAL(taskStarted(Task*)),
- this, SLOT(onTaskStarted(Task*)));
- connect(task, SIGNAL(taskEnded(Task*)),
- this, SLOT(onTaskEnded(Task*)));
- connect(task, SIGNAL(statusChanged(const QString&)),
- this, SLOT(changeStatus(const QString&)));
- connect(task, SIGNAL(progressChanged(int)),
- this, SLOT(changeProgress(int)));
+ connect(task, SIGNAL(started(Task*)), SLOT(onTaskStarted(Task*)));
+ connect(task, SIGNAL(ended(Task*)), SLOT(onTaskEnded(Task*)));
+ connect(task, SIGNAL(statusChanged(const QString&)), SLOT(changeStatus(const QString&)));
+ connect(task, SIGNAL(progressChanged(int)), SLOT(changeProgress(int)));
task->startTask();
QDialog::exec();