summaryrefslogtreecommitdiffstats
path: root/gui/taskdialog.cpp
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-05-06 17:19:20 -0500
committerAndrew <forkk@forkk.net>2013-05-06 17:19:20 -0500
commit7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688 (patch)
tree4fb1ac88b2aa5daa10b6bde4764453623c3ac4f5 /gui/taskdialog.cpp
parent2fe6bc47ed5f3d52d33d164af9a2176eb7d29026 (diff)
downloadMultiMC-7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688.tar
MultiMC-7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688.tar.gz
MultiMC-7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688.tar.lz
MultiMC-7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688.tar.xz
MultiMC-7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688.zip
Made the version list load in the background on startup.
Resolves JIRA issue MMC-11: https://jira.forkk.net/browse/MMC-11
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();