summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/uninstallwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/uninstallwindow.cpp')
-rw-r--r--rbutil/rbutilqt/uninstallwindow.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/uninstallwindow.cpp b/rbutil/rbutilqt/uninstallwindow.cpp
index 4abfe93b1e..fc47840b78 100644
--- a/rbutil/rbutilqt/uninstallwindow.cpp
+++ b/rbutil/rbutilqt/uninstallwindow.cpp
@@ -31,6 +31,11 @@ UninstallWindow::UninstallWindow(QWidget *parent) : QDialog(parent)
QString mountpoint = RbSettings::value(RbSettings::Mountpoint).toString();
uninstaller = new Uninstaller(this,mountpoint);
+ logger = new ProgressLoggerGui(this);
+ connect(uninstaller, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int)));
+ connect(uninstaller, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int)));
+ connect(uninstaller, SIGNAL(logFinished(void)), logger, SLOT(setFinished(void)));
+ connect(logger, SIGNAL(closed()), this, SLOT(close()));
// disable smart uninstall, if not possible
if(!uninstaller->uninstallPossible())
@@ -50,17 +55,15 @@ UninstallWindow::UninstallWindow(QWidget *parent) : QDialog(parent)
void UninstallWindow::accept()
{
- logger = new ProgressLoggerGui(this);
logger->show();
- connect(logger,SIGNAL(closed()),this,SLOT(close()));
if(ui.CompleteRadioBtn->isChecked())
{
- uninstaller->deleteAll(logger);
+ uninstaller->deleteAll();
}
else
{
- uninstaller->uninstall(logger);
+ uninstaller->uninstall();
}
}