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/downloadfromdivecomputer.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'qt-ui/downloadfromdivecomputer.cpp') diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 70ec28a5b..3148a566c 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -36,13 +36,6 @@ namespace DownloadFromDcGlobal { const char *err_string; }; -DownloadFromDCWidget *DownloadFromDCWidget::instance() -{ - static DownloadFromDCWidget *dialog = new DownloadFromDCWidget(mainWindow()); - dialog->setAttribute(Qt::WA_QuitOnClose, false); - return dialog; -} - DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) : QDialog(parent, f), thread(0), timer(new QTimer(this)), dumpWarningShown(false), currentState(INITIAL) @@ -79,12 +72,6 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) : updateState(INITIAL); } -void DownloadFromDCWidget::runDialog() -{ - updateState(INITIAL); - exec(); -} - void DownloadFromDCWidget::updateProgressBar() { if (*progress_bar_text != '\0') { -- cgit v1.2.3-70-g09d2