From 09d6d4f5deff46999f3739fb8d670ecc867f60f1 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 8 Jan 2015 11:29:28 -0200 Subject: [PATCH] Dive d/l selection UI: Create a button to download the data from DC Now, ok should close the dialog, and not download the dives from the DC, this way the user can choose what happens. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/downloadfromdivecomputer.cpp | 3 ++- qt-ui/downloadfromdivecomputer.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index e9cb94220..4e4a24f7b 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -54,6 +54,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : ui.progressBar->setMinimum(0); ui.progressBar->setMaximum(100); diveImportedModel = new DiveImportedModel(this); + ui.downloadedView->setModel(diveImportedModel); progress_bar_text = ""; @@ -270,7 +271,7 @@ void DownloadFromDCWidget::on_cancel_clicked() updateState(CANCELLING); } -void DownloadFromDCWidget::on_ok_clicked() +void DownloadFromDCWidget::on_startDownload_clicked() { updateState(DOWNLOADING); diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h index 8ab7e3651..a23beb0f1 100644 --- a/qt-ui/downloadfromdivecomputer.h +++ b/qt-ui/downloadfromdivecomputer.h @@ -59,7 +59,7 @@ public: public slots: - void on_ok_clicked(); + void on_startDownload_clicked(); void on_cancel_clicked(); void on_search_clicked(); void on_vendor_currentIndexChanged(const QString &vendor);