summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-28 07:37:11 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-28 07:37:11 -0800
commit0be0cdb046018a5ec633bfc6f0aacba20d5c35e2 (patch)
tree628557756a616ad1cfc3a8ac286a7fbb9353cf23 /qt-ui/downloadfromdivecomputer.cpp
parent542ff7fc367560b33c8d617c9534f934cab0a546 (diff)
downloadsubsurface-0be0cdb046018a5ec633bfc6f0aacba20d5c35e2.tar.gz
OSTC firmware update prompt: use the stable changelog files
Heinrichs Weikamp is giving us stable URLs from which we can get the latest stable version. The parsing is a bit simplistic, but it seems to work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index bc3fc12e8..59a8139d6 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -304,8 +304,9 @@ void DownloadFromDCWidget::on_ok_clicked()
thread->start();
- if (ui.product->currentText() == "OSTC 3" || ui.product->currentText() == "OSTC sport")
- ostcFirmwareCheck = new OstcFirmwareCheck();
+ QString product(ui.product->currentText());
+ if (product == "OSTC 3" || product == "OSTC Sport")
+ ostcFirmwareCheck = new OstcFirmwareCheck(product);
}
bool DownloadFromDCWidget::preferDownloaded()