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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-01-08 11:29:28 -02:00 committed by Dirk Hohndel
parent acb5168254
commit 09d6d4f5de
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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);