diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-09 12:00:34 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-09 12:00:34 -0800 |
commit | cd2cee4974a413a9fd462b4115d92b3c633f1a44 (patch) | |
tree | f2e81294c41bbdc28838de158d678b66b119bcc8 | |
parent | e9e6e75feb8d4a10f681a2e4435c2bdc97c7c1ea (diff) | |
download | subsurface-cd2cee4974a413a9fd462b4115d92b3c633f1a44.tar.gz |
Dive d/l selection UI: only allow one download for now
We may reconsider this as this might replace the Retry function that's
currently completely broken.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 6700bcdfc..44ea3881f 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -102,6 +102,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this); connect(quit, SIGNAL(activated()), parent, SLOT(close())); ui.ok->setEnabled(false); + ui.startDownload->setEnabled(true); } void DownloadFromDCWidget::updateProgressBar() @@ -406,6 +407,7 @@ void DownloadFromDCWidget::onDownloadThreadFinished() } else if (dive_table.nr && previousLast < dive_table.nr) { diveImportedModel->setImportedDivesIndexes(previousLast, dive_table.nr - 1); } + ui.startDownload->setEnabled(false); } else if (currentState == CANCELLING || currentState == CANCELLED) { if (import_thread_cancelled) { // walk backwards so we don't keep moving the dives |