diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-30 00:25:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-29 16:27:44 -0800 |
commit | 221b5f0ff7eb63efb22da9768a70994c9bb88c0e (patch) | |
tree | 840f1bb893688d3ce1db1dabe651aeadb45571ef | |
parent | e00233051e03b5f015f9118df646d7164d72e416 (diff) | |
download | subsurface-221b5f0ff7eb63efb22da9768a70994c9bb88c0e.tar.gz |
Only check for update after successfull download
We check that the logbook download didn't error out before checking if
we should remind the user to upgrade the firmware. Otherwise we will
check if whatever the current firmware version is, is greater than zero
and always remind the user to upgrade the fw.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index a356a767a..7f5fd4a46 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -403,7 +403,7 @@ void DownloadFromDCWidget::onDownloadThreadFinished() MainWindow::instance()->dive_list()->unselectDives(); MainWindow::instance()->dive_list()->selectDive(idx, true); QString dcName = data.devname; - if (ostcFirmwareCheck) + if (ostcFirmwareCheck && currentState == DONE) ostcFirmwareCheck->checkLatest(this, &data); } } else if (currentState == CANCELLING || currentState == CANCELLED) { |