fixed checkStatusAndClear handler

This commit is contained in:
Martchus 2015-08-29 21:36:04 +02:00
parent 4d006dbabf
commit 18636e1541
1 changed files with 2 additions and 2 deletions

View File

@ -57,13 +57,13 @@ void TestDownload::doInit()
void TestDownload::checkStatusAndClear(size_t optionIndex)
{
reportDownloadComplete(optionIndex);
reportFinalDownloadStatus(optionIndex, true, QStringLiteral("test completed"));
}
void TestDownload::tick()
{
if(bytesReceived() < 5000) {
reportDownloadProgressUpdate(chosenOption(), bytesReceived() + 10, 5000);
reportDownloadProgressUpdate(chosenOption(), bytesReceived() + 300, 5000);
} else {
reportDownloadComplete(0);
}