downloader: wait for download thread

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2020-11-23 17:17:17 +01:00 committed by Dirk Hohndel
parent eac59a79d8
commit 5e34531e32
3 changed files with 7 additions and 0 deletions

View file

@ -144,6 +144,11 @@ void DiveImportedModel::startDownload()
thread.start();
}
void DiveImportedModel::waitForDownload()
{
thread.wait();
}
std::tuple<struct dive_table, struct dive_site_table, struct device_table> DiveImportedModel::consumeTables()
{
beginResetModel();