summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-01-19 23:44:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-20 22:15:58 +1200
commit0f87a7073be4ec35bcfe78f67084ea6983c95b32 (patch)
tree923f36144e6148658ddc2c4e0c4136df7121c3b5 /desktop-widgets
parent8fa156eb0d2364f9dc17ac80805408f62343799d (diff)
downloadsubsurface-0f87a7073be4ec35bcfe78f67084ea6983c95b32.tar.gz
Import: fix erroneous flag
In 891fcbf520f28ef6016d6171eba83c6773efca00 boolean parameters were replaced by flags. Fix an error in this commit: IMPORT_IS_DOWNLOADED should be IMPORT_PREFER_IMPORTED. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 2bad04d1c..cb820c78b 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -518,7 +518,7 @@ void DownloadFromDCWidget::on_ok_clicked()
auto data = thread.data();
int flags = IMPORT_IS_DOWNLOADED;
if (preferDownloaded())
- flags |= IMPORT_IS_DOWNLOADED;
+ flags |= IMPORT_PREFER_IMPORTED;
if (ui.createNewTrip->isChecked())
flags |= IMPORT_ADD_TO_NEW_TRIP;
Command::importDives(table, nullptr, flags, data->devName());