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.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libs/installer/downloadarchivesjob.cpp b/src/libs/installer/downloadarchivesjob.cpp
index 5cada20d4..7e1196bcf 100644
--- a/src/libs/installer/downloadarchivesjob.cpp
+++ b/src/libs/installer/downloadarchivesjob.cpp
@@ -74,16 +74,9 @@ DownloadArchivesJob::DownloadArchivesJob(PackageManagerCore *core)
/*!
Destroys the DownloadArchivesJob.
- All temporary files get deleted.
*/
DownloadArchivesJob::~DownloadArchivesJob()
{
- foreach (const QString &fileName, m_temporaryFiles) {
- QFile file(fileName);
- if (file.exists() && !file.remove())
- qWarning("Could not delete file %s: %s", qPrintable(fileName), qPrintable(file.errorString()));
- }
-
if (m_downloader)
m_downloader->deleteLater();
}
@@ -159,8 +152,6 @@ void DownloadArchivesJob::finishedHashDownload()
else
finishWithError(tr("Downloading hash signature failed."));
- m_temporaryFiles.insert(tempFile);
-
fetchNextArchive();
}
@@ -253,7 +244,6 @@ void DownloadArchivesJob::registerFile()
emit progressChanged(double(m_archivesDownloaded) / m_archivesToDownloadCount);
}
- m_temporaryFiles.insert(m_downloader->downloadedFileName());
const QPair<QString, QString> pair = m_archivesToDownload.takeFirst();
QInstallerCreator::BinaryFormatEngineHandler::instance()->registerArchive(pair.first,
m_downloader->downloadedFileName());