summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/downloadarchivesjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/downloadarchivesjob.cpp')
-rw-r--r--src/libs/installer/downloadarchivesjob.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libs/installer/downloadarchivesjob.cpp b/src/libs/installer/downloadarchivesjob.cpp
index 74f5cdd5a..49abee339 100644
--- a/src/libs/installer/downloadarchivesjob.cpp
+++ b/src/libs/installer/downloadarchivesjob.cpp
@@ -211,19 +211,12 @@ void DownloadArchivesJob::timerEvent(QTimerEvent *event)
}
/*!
- Registers the just downloaded file in the intaller's file system.
+ Registers the just downloaded file in the installer's file system.
*/
void DownloadArchivesJob::registerFile()
{
Q_ASSERT(m_downloader != 0);
- ++m_archivesDownloaded;
- if (m_progressChangedTimerId) {
- killTimer(m_progressChangedTimerId);
- m_progressChangedTimerId = 0;
- emit progressChanged(double(m_archivesDownloaded) / m_archivesToDownloadCount);
- }
-
const QString tempFile = m_downloader->downloadedFileName();
if (m_core->testChecksum()) {
QFile archiveFile(tempFile);
@@ -251,6 +244,13 @@ void DownloadArchivesJob::registerFile()
}
}
+ ++m_archivesDownloaded;
+ if (m_progressChangedTimerId) {
+ killTimer(m_progressChangedTimerId);
+ m_progressChangedTimerId = 0;
+ emit progressChanged(double(m_archivesDownloaded) / m_archivesToDownloadCount);
+ }
+
m_temporaryFiles.insert(tempFile);
const QPair<QString, QString> pair = m_archivesToDownload.takeFirst();
QInstallerCreator::BinaryFormatEngineHandler::instance()->registerArchive(pair.first, tempFile);