diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-08 20:22:09 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-09 08:17:08 -0800 |
commit | 449c6fc6f2cd17bc9c4322aabc32f2b2bf88a220 (patch) | |
tree | aa2732a491223e585e75600cdd02c933f5bc25b6 /qt-ui/mainwindow.cpp | |
parent | 02e9a6d07ba6abf558ba1dc9c5721f2429cfd566 (diff) | |
download | subsurface-449c6fc6f2cd17bc9c4322aabc32f2b2bf88a220.tar.gz |
DownloadFromDCWidget class cleanup
Remove static DownloadFromDCWidget::instance() method
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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() |