diff options
Diffstat (limited to 'src/libs/installer/downloadarchivesjob.cpp')
-rw-r--r-- | src/libs/installer/downloadarchivesjob.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/installer/downloadarchivesjob.cpp b/src/libs/installer/downloadarchivesjob.cpp index 82f9b365c..620eedd60 100644 --- a/src/libs/installer/downloadarchivesjob.cpp +++ b/src/libs/installer/downloadarchivesjob.cpp @@ -319,10 +319,9 @@ KDUpdater::FileDownloader *DownloadArchivesJob::setupDownloader(const QString &s Qt::QueuedConnection); connect(downloader, SIGNAL(downloadStatus(QString)), this, SIGNAL(downloadStatusChanged(QString))); - if (scheme == QLatin1String("http") || scheme == QLatin1String("ftp") || - scheme == QLatin1String("file")) { - downloader->setDownloadedFileName(component->localTempPath() + QLatin1String("/") - + component->name() + QLatin1String("/") + fi.fileName() + suffix); + if (FileDownloaderFactory::isSupportedScheme(scheme)) { + downloader->setDownloadedFileName(component->localTempPath() + QLatin1Char('/') + + component->name() + QLatin1Char('/') + fi.fileName() + suffix); } QString message = tr("Downloading archive hash for component: %1"); |