summaryrefslogtreecommitdiffstats
path: root/qt-models/diveimportedmodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-03 21:45:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-06 19:47:06 -0700
commit6dc1dcaea52e383803a620369567684f553ede80 (patch)
treeacde1a3bd6e60445f1e8dcbe2aa5283d3573ca50 /qt-models/diveimportedmodel.cpp
parente5dca8228e6b60cac5957726700c66d0565c064e (diff)
downloadsubsurface-6dc1dcaea52e383803a620369567684f553ede80.tar.gz
Import: pass "downloaded" parameter to process_imported_dives()
process_imported_dives() is more efficient for downloaded than for imported (from a file) dives, because it checks only the divecomputer of the first dive. This condition is checked via the "downloaded" flag of the first dive. Instead, pass an argument to process_imported_dives(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveimportedmodel.cpp')
-rw-r--r--qt-models/diveimportedmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/diveimportedmodel.cpp b/qt-models/diveimportedmodel.cpp
index ebe803244..6926981d5 100644
--- a/qt-models/diveimportedmodel.cpp
+++ b/qt-models/diveimportedmodel.cpp
@@ -173,7 +173,7 @@ void DiveImportedModel::recordDives()
delete_dive_from_table(&downloadTable, j);
}
- process_imported_dives(diveTable, true);
+ process_imported_dives(diveTable, true, true);
if (autogroup)
autogroup_dives();
}