diff options
Diffstat (limited to 'installerbuilder/libinstaller/downloadarchivesjob.cpp')
-rw-r--r-- | installerbuilder/libinstaller/downloadarchivesjob.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/downloadarchivesjob.cpp b/installerbuilder/libinstaller/downloadarchivesjob.cpp index cbd782f33..dbfb471f6 100644 --- a/installerbuilder/libinstaller/downloadarchivesjob.cpp +++ b/installerbuilder/libinstaller/downloadarchivesjob.cpp @@ -316,6 +316,11 @@ KDUpdater::FileDownloader *DownloadArchivesJob::setupDownloader(const QString &p downloader->setUrl(url); downloader->setAutoRemoveDownloadedFile(false); + QAuthenticator auth; + auth.setUser(component->value(QLatin1String("username"))); + auth.setPassword(component->value(QLatin1String("password"))); + downloader->setAuthenticator(auth); + connect(downloader, SIGNAL(downloadCanceled()), this, SLOT(downloadCanceled())); connect(downloader, SIGNAL(downloadAborted(QString)), this, SLOT(downloadFailed(QString)), Qt::QueuedConnection); |