diff options
author | kh1 <qt-info@nokia.com> | 2011-07-14 11:08:26 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-07-14 11:08:26 +0200 |
commit | f14d0c3dcdee5cd3003d08d66ef6bbcdf0fff905 (patch) | |
tree | 511c9d3f75e5101c384ae135f4920169d3168217 /installerbuilder/libinstaller/downloadarchivesjob.cpp | |
parent | da2a2ef233910d626cacbad83da8901a4e922f11 (diff) |
Fix crash while accessing a possible empty list.
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(); } |