mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Dive d/l selection UI: don't close the dialog when we're done downloading
The whole point is that we then want to pick and choose which dives to add to the divelist. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
747afa314a
commit
a3ea1d51f9
1 changed files with 2 additions and 4 deletions
|
@ -134,9 +134,8 @@ void DownloadFromDCWidget::updateState(states state)
|
|||
}
|
||||
|
||||
// DOWNLOAD is finally done, but we don't know if there was an error as libdivecomputer doesn't pass
|
||||
// that information on to us
|
||||
// so check the progressBar text and if no error was reported, close the dialog and go back to the main window
|
||||
// otherwise treat this as if the download was cancelled
|
||||
// that information on to us.
|
||||
// If we find an error, offer to retry, otherwise continue the interaction to pick the dives the user wants
|
||||
else if (currentState == DOWNLOADING && state == DONE) {
|
||||
timer->stop();
|
||||
if (QString(progress_bar_text).contains("error", Qt::CaseInsensitive)) {
|
||||
|
@ -148,7 +147,6 @@ void DownloadFromDCWidget::updateState(states state)
|
|||
ui.progressBar->setValue(100);
|
||||
markChildrenAsEnabled();
|
||||
ui.ok->setText(tr("OK"));
|
||||
accept();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue