aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-20 22:11:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-20 22:11:43 -0700
commit4bccee238cec25ed9053bc8605c2af4c2c9569b4 (patch)
treebfc51a35c85cba1e3ee75cc90ac48cf2def478f2 /qt-ui/downloadfromdivecomputer.cpp
parent3953800fe6e9e26f8e987d61cda1d2fd53ca97c6 (diff)
downloadsubsurface-4bccee238cec25ed9053bc8605c2af4c2c9569b4.tar.gz
Download dialog: we can accept a partial download after an error
The dialog didn't accept "OK" and store the dives downloaded / selected so far if there had been an error. Especially with partial downloads from the Uemis SDA this is something that is quite reasonable to want to do, so allow exiting the dialog with OK even after an error. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index c57aa1ef2..d4deff268 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -422,7 +422,7 @@ void DownloadFromDCWidget::on_ok_clicked()
{
struct dive *dive;
- if (currentState != DONE)
+ if (currentState != DONE && currentState != ERROR)
return;
// record all the dives in the 'real' dive_table