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 /tests/testrenumber.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 'tests/testrenumber.cpp')
-rw-r--r-- | tests/testrenumber.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testrenumber.cpp b/tests/testrenumber.cpp index 9c409c512..89ce1f8d0 100644 --- a/tests/testrenumber.cpp +++ b/tests/testrenumber.cpp @@ -15,7 +15,7 @@ void TestRenumber::testMerge() { struct dive_table table = { 0 }; QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47b.xml", &table), 0); - process_imported_dives(&table, false); + process_imported_dives(&table, false, false); QCOMPARE(dive_table.nr, 1); QCOMPARE(unsaved_changes(), 1); mark_divelist_changed(false); @@ -25,7 +25,7 @@ void TestRenumber::testMergeAndAppend() { struct dive_table table = { 0 }; QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47c.xml", &table), 0); - process_imported_dives(&table, false); + process_imported_dives(&table, false, false); QCOMPARE(dive_table.nr, 2); QCOMPARE(unsaved_changes(), 1); struct dive *d = get_dive(1); |