From 7f2c7aa7dee10d419fe3ce208d6a36cc1e93b580 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 11 Jan 2019 06:53:22 +0200 Subject: Download: don't refresh display if thread finished After the downloading finished, the mainwindow-display is reset via a signal. This is probably an artifact of old times, when downloading was done into the main dive-list. Nowadays, this seems to make little sense, as the main dive-list is not changed by download. Remove the signal. Signed-off-by: Berthold Stoeger --- desktop-widgets/downloadfromdivecomputer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index ff703d98e..052b71c44 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -70,10 +70,6 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : connect(&thread, SIGNAL(finished()), this, SLOT(onDownloadThreadFinished()), Qt::QueuedConnection); - //TODO: Don't call mainwindow. - MainWindow *w = MainWindow::instance(); - connect(&thread, SIGNAL(finished()), w, SLOT(refreshDisplay())); - if (!qPrefDiveComputer::vendor().isEmpty()) { ui.vendor->setCurrentIndex(ui.vendor->findText(qPrefDiveComputer::vendor())); productModel.setStringList(productList[qPrefDiveComputer::vendor()]); -- cgit v1.2.3-70-g09d2