summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-10-09 23:16:10 +0200
committerPetr Mrázek <peterix@gmail.com>2013-10-09 23:16:10 +0200
commiteaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5 (patch)
treee3a844f6b6c4fa31da606de992a28af45d6695f3 /gui
parent595943244ca929e5c566a78efae9a017ebaed69f (diff)
downloadMultiMC-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.tar
MultiMC-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.tar.gz
MultiMC-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.tar.lz
MultiMC-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.tar.xz
MultiMC-eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5.zip
Fix MMC-15
``mod does not delete from jar''
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;
}
}