summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index d8983e9aa..57415fac5 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -45,7 +45,7 @@ DownloadFromDCWidget *DownloadFromDCWidget::instance()
DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) :
QDialog(parent, f), thread(0), timer(new QTimer(this)),
- currentState(INITIAL)
+ currentState(INITIAL), dumpWarningShown(false)
{
ui.setupUi(this);
ui.progressBar->hide();
@@ -279,8 +279,14 @@ void DownloadFromDCWidget::checkDumpFile(int state)
{
ui.chooseDumpFile->setEnabled(state == Qt::Checked);
data.libdc_dump = (state == Qt::Checked);
- if (state == Qt::Checked && dumpFile.isEmpty()) {
- pickDumpFile();
+ if (state == Qt::Checked) {
+ if (dumpFile.isEmpty())
+ pickDumpFile();
+ if (!dumpWarningShown) {
+ QMessageBox::warning(this, tr("Warning"),
+ tr("Saving the libdivecomputer dump will NOT download dives to the dive list."));
+ dumpWarningShown = true;
+ }
}
}