diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-03 21:45:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-06 19:47:06 -0700 |
commit | 6dc1dcaea52e383803a620369567684f553ede80 (patch) | |
tree | acde1a3bd6e60445f1e8dcbe2aa5283d3573ca50 /desktop-widgets/downloadfromdivecomputer.cpp | |
parent | e5dca8228e6b60cac5957726700c66d0565c064e (diff) | |
download | subsurface-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 'desktop-widgets/downloadfromdivecomputer.cpp')
-rw-r--r-- | desktop-widgets/downloadfromdivecomputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index 46cb0418b..1e239c378 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -506,7 +506,7 @@ void DownloadFromDCWidget::on_ok_clicked() // remember the last downloaded dive (on most dive computers this will be the chronologically // first new dive) and select it again after processing all the dives int uniqId = downloadTable.dives[downloadTable.nr - 1]->id; - process_imported_dives(&downloadTable, preferDownloaded()); + process_imported_dives(&downloadTable, preferDownloaded(), true); // after process_imported_dives does any merging or resorting needed, we need // to recreate the model for the dive list so we can select the newest dive MainWindow::instance()->recreateDiveList(); |