From 449c6fc6f2cd17bc9c4322aabc32f2b2bf88a220 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Sat, 8 Feb 2014 20:22:09 +0100 Subject: DownloadFromDCWidget class cleanup Remove static DownloadFromDCWidget::instance() method Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 0cafa08cf..a477bbdd4 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -270,8 +270,9 @@ void MainWindow::on_actionQuit_triggered() void MainWindow::on_actionDownloadDC_triggered() { - DownloadFromDCWidget* downloadWidget = DownloadFromDCWidget::instance(); - downloadWidget->runDialog(); + DownloadFromDCWidget dlg(this); + + dlg.exec(); } void MainWindow::on_actionDownloadWeb_triggered() -- cgit v1.2.3-70-g09d2