mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Import: clear table via model not via thread
Clearing the table in the thread leaves the model in an inconsistent state. Don't do that. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8f3c85f58d
commit
36676120ab
1 changed files with 1 additions and 2 deletions
|
@ -367,7 +367,6 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
|
|||
// this means we are retrying - so we better clean out the partial
|
||||
// list of downloaded dives from the last attempt
|
||||
diveImportedModel->clearTable();
|
||||
clear_dive_table(diveImportedModel->thread.table());
|
||||
}
|
||||
updateState(DOWNLOADING);
|
||||
|
||||
|
@ -517,7 +516,7 @@ void DownloadFromDCWidget::on_cancel_clicked()
|
|||
return;
|
||||
|
||||
// now discard all the dives
|
||||
clear_dive_table(diveImportedModel->thread.table());
|
||||
diveImportedModel->clearTable();
|
||||
done(-1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue