summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 70d26e02..5784b85a 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -507,10 +507,11 @@ void MainWindow::onLoginComplete()
}
else
{
- ProgressDialog *tDialog = new ProgressDialog(this);
+ ProgressDialog tDialog(this);
connect(updateTask, SIGNAL(succeeded()), SLOT(onGameUpdateComplete()));
connect(updateTask, SIGNAL(failed(QString)), SLOT(onGameUpdateError(QString)));
- tDialog->exec(updateTask);
+ tDialog.exec(updateTask);
+ delete updateTask;
}
}