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-30 07:41:41 -0700
commite9ba8f0ff60144dd71bfb4e305a3a41dde2722f5 (patch)
tree0ce94fded8eca309d1e9ae96842bb0eff2e77843 /qt-ui/downloadfromdivecomputer.cpp
parent2b70a70296935222db46d27b0b574df5879cc79e (diff)
downloadsubsurface-e9ba8f0ff60144dd71bfb4e305a3a41dde2722f5.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 cd3dd90d0..c7a48c46b 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -420,7 +420,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