mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
Connect download-complete signal before starting downloads.
This commit is contained in:
parent
33f3552cba
commit
cfed050b50
1 changed files with 2 additions and 2 deletions
|
@ -152,6 +152,8 @@ void AutoTester::downloadFile(const QUrl& url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoTester::downloadFiles(const QStringList& URLs, const QString& directoryName, const QStringList& filenames, void *caller) {
|
void AutoTester::downloadFiles(const QStringList& URLs, const QString& directoryName, const QStringList& filenames, void *caller) {
|
||||||
|
connect(_signalMapper, SIGNAL(mapped(int)), this, SLOT(saveFile(int)));
|
||||||
|
|
||||||
_directoryName = directoryName;
|
_directoryName = directoryName;
|
||||||
_filenames = filenames;
|
_filenames = filenames;
|
||||||
_caller = caller;
|
_caller = caller;
|
||||||
|
@ -169,8 +171,6 @@ void AutoTester::downloadFiles(const QStringList& URLs, const QString& directory
|
||||||
for (int i = 0; i < _numberOfFilesToDownload; ++i) {
|
for (int i = 0; i < _numberOfFilesToDownload; ++i) {
|
||||||
downloadFile(URLs[i]);
|
downloadFile(URLs[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(_signalMapper, SIGNAL(mapped(int)), this, SLOT(saveFile(int)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoTester::saveFile(int index) {
|
void AutoTester::saveFile(int index) {
|
||||||
|
|
Loading…
Reference in a new issue