mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e9e6e75feb
commit
cd2cee4974
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
|
||||||
QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this);
|
QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this);
|
||||||
connect(quit, SIGNAL(activated()), parent, SLOT(close()));
|
connect(quit, SIGNAL(activated()), parent, SLOT(close()));
|
||||||
ui.ok->setEnabled(false);
|
ui.ok->setEnabled(false);
|
||||||
|
ui.startDownload->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DownloadFromDCWidget::updateProgressBar()
|
void DownloadFromDCWidget::updateProgressBar()
|
||||||
|
@ -406,6 +407,7 @@ void DownloadFromDCWidget::onDownloadThreadFinished()
|
||||||
} else if (dive_table.nr && previousLast < dive_table.nr) {
|
} else if (dive_table.nr && previousLast < dive_table.nr) {
|
||||||
diveImportedModel->setImportedDivesIndexes(previousLast, dive_table.nr - 1);
|
diveImportedModel->setImportedDivesIndexes(previousLast, dive_table.nr - 1);
|
||||||
}
|
}
|
||||||
|
ui.startDownload->setEnabled(false);
|
||||||
} else if (currentState == CANCELLING || currentState == CANCELLED) {
|
} else if (currentState == CANCELLING || currentState == CANCELLED) {
|
||||||
if (import_thread_cancelled) {
|
if (import_thread_cancelled) {
|
||||||
// walk backwards so we don't keep moving the dives
|
// walk backwards so we don't keep moving the dives
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue