mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: use divelog struct in downloader code
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
a2845ece82
commit
b56b7abcf5
11 changed files with 64 additions and 65 deletions
|
@ -125,9 +125,7 @@ void DiveImportedModel::downloadThreadFinished()
|
|||
beginResetModel();
|
||||
|
||||
// Move the table data from thread to model
|
||||
move_dive_table(&thread.downloadTable, log.dives);
|
||||
move_dive_site_table(&thread.diveSiteTable, log.sites);
|
||||
*log.devices = std::move(thread.deviceTable);
|
||||
log = std::move(thread.log);
|
||||
|
||||
checkStates.resize(log.dives->nr);
|
||||
std::fill(checkStates.begin(), checkStates.end(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue