mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Reverted previous commit.
This commit is contained in:
parent
ef34ff622a
commit
c7b3b9c0d2
1 changed files with 4 additions and 4 deletions
|
@ -246,6 +246,10 @@ void Nitpick::downloadFiles(const QStringList& URLs, const QString& directoryNam
|
|||
_ui.progressBar->setValue(0);
|
||||
_ui.progressBar->setVisible(true);
|
||||
|
||||
foreach (auto downloader, _downloaders) {
|
||||
delete downloader;
|
||||
}
|
||||
|
||||
_downloaders.clear();
|
||||
for (int i = 0; i < _numberOfFilesToDownload; ++i) {
|
||||
downloadFile(URLs[i]);
|
||||
|
@ -273,10 +277,6 @@ void Nitpick::saveFile(int index) {
|
|||
} else if (_caller == _testRunner) {
|
||||
_testRunner->downloadComplete();
|
||||
}
|
||||
|
||||
foreach (auto downloader, _downloaders) {
|
||||
delete downloader;
|
||||
}
|
||||
} else {
|
||||
_ui.progressBar->setValue(_numberOfFilesDownloaded);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue