diff options
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index 08ba9408d..3181faba8 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -405,6 +405,9 @@ void DownloadFromDCWidget::onDownloadThreadFinished() void DownloadFromDCWidget::on_ok_clicked() { + if (currentState != DONE) + return; + // remove all unselected dives from the dive-list. diveImportedModel->removeUnused(); |