From 25323c271747abbd7cdcd7487ee12a7dac72eda5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 8 Jan 2015 11:31:05 -0200 Subject: Dive d/l selection UI: Hook up OK button Create an on_ok_clicked that will do the actuall parsing of choosen dives. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 8 ++++---- qt-ui/downloadfromdivecomputer.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 4e4a24f7b..abc6fff91 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -402,8 +402,9 @@ void DownloadFromDCWidget::onDownloadThreadFinished() updateState(CANCELLED); } } -/* - * This needs to get moved somewhere else. + +void DownloadFromDCWidget::on_ok_clicked() +{ int uniqId, idx; // remember the last downloaded dive (on most dive computers this will be the chronologically // first new dive) and select it again after processing all the dives @@ -421,8 +422,7 @@ void DownloadFromDCWidget::onDownloadThreadFinished() QString dcName = data.devname; if (ostcFirmwareCheck && currentState == DONE) ostcFirmwareCheck->checkLatest(this, &data); - -*/ +} void DownloadFromDCWidget::markChildrenAsDisabled() { diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h index a23beb0f1..b567dfe0e 100644 --- a/qt-ui/downloadfromdivecomputer.h +++ b/qt-ui/downloadfromdivecomputer.h @@ -60,6 +60,7 @@ public: public slots: void on_startDownload_clicked(); + void on_ok_clicked(); void on_cancel_clicked(); void on_search_clicked(); void on_vendor_currentIndexChanged(const QString &vendor); -- cgit v1.2.3-70-g09d2