diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-10-09 23:16:10 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-10-09 23:16:10 +0200 |
commit | eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5 (patch) | |
tree | e3a844f6b6c4fa31da606de992a28af45d6695f3 /gui | |
parent | 595943244ca929e5c566a78efae9a017ebaed69f (diff) | |
download | PrismLauncher-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.tar.gz PrismLauncher-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.tar.bz2 PrismLauncher-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.zip |
Fix MMC-15
``mod does not delete from jar''
Diffstat (limited to 'gui')
-rw-r--r-- | gui/mainwindow.cpp | 5 |
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; } } |