summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-08 11:31:05 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-08 07:45:58 -0800
commit25323c271747abbd7cdcd7487ee12a7dac72eda5 (patch)
treef65f44b99a66039ad24278273c6cc2877e025f95
parent09d6d4f5deff46999f3739fb8d670ecc867f60f1 (diff)
downloadsubsurface-25323c271747abbd7cdcd7487ee12a7dac72eda5.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp8
-rw-r--r--qt-ui/downloadfromdivecomputer.h1
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);