mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Import: extract number of dives from model not from thread
The plan is to make the model the authoritative source of the imported dives. Therefore, access the number of downloaded dives from there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
36676120ab
commit
81268adfd3
3 changed files with 7 additions and 1 deletions
|
@ -272,7 +272,7 @@ void DownloadFromDCWidget::updateState(states state)
|
|||
markChildrenAsEnabled();
|
||||
progress_bar_text = "";
|
||||
} else {
|
||||
if (diveImportedModel->thread.table()->nr != 0)
|
||||
if (diveImportedModel->numDives() != 0)
|
||||
progress_bar_text = "";
|
||||
ui.progressBar->setValue(100);
|
||||
markChildrenAsEnabled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue