diff options
Diffstat (limited to 'installerbuilder/libinstaller/downloadarchivesjob.cpp')
-rw-r--r-- | installerbuilder/libinstaller/downloadarchivesjob.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/installerbuilder/libinstaller/downloadarchivesjob.cpp b/installerbuilder/libinstaller/downloadarchivesjob.cpp index 1db8a9c6c..c110ce839 100644 --- a/installerbuilder/libinstaller/downloadarchivesjob.cpp +++ b/installerbuilder/libinstaller/downloadarchivesjob.cpp @@ -300,9 +300,8 @@ void DownloadArchivesJob::registerFile() } m_temporaryFiles.insert(tempFile); - m_archivesToDownload.removeFirst(); - QInstallerCreator::BinaryFormatEngineHandler::instance()->registerArchive(m_archivesToDownload.first() - .first, tempFile); + const QPair<QString, QString> pair = m_archivesToDownload.takeFirst(); + QInstallerCreator::BinaryFormatEngineHandler::instance()->registerArchive(pair.first, tempFile); fetchNextArchiveHash(); } |