diff options
author | Fabian Müller <fmueller@owncloud.com> | 2022-05-13 00:17:22 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-05-13 09:51:40 +0300 |
commit | 641856400a8abd70a0f3ef97b2d347ed74a7aa88 (patch) | |
tree | ca323212edab8a88aea8fd237bee773b930644c2 /src/gui/newwizard | |
parent | 3a5f3dff7698a5eb66c5c0cd4058e043aa52d398 (diff) |
Allow access to CoreJob reply on errors
Needed for an upcoming refactoring of the CheckServerJob.
Diffstat (limited to 'src/gui/newwizard')
-rw-r--r-- | src/gui/newwizard/jobs/resolveurljobfactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/newwizard/jobs/resolveurljobfactory.cpp b/src/gui/newwizard/jobs/resolveurljobfactory.cpp index 27bcb6a1e..255bc9ca0 100644 --- a/src/gui/newwizard/jobs/resolveurljobfactory.cpp +++ b/src/gui/newwizard/jobs/resolveurljobfactory.cpp @@ -53,7 +53,7 @@ CoreJob *ResolveUrlJobFactory::startJob(const QUrl &url) return; } - setJobError(job, tr("Failed to resolve the url %1, error: %2").arg(oldUrl.toDisplayString(), reply->errorString()), reply->error()); + setJobError(job, tr("Failed to resolve the url %1, error: %2").arg(oldUrl.toDisplayString(), reply->errorString()), reply); qCWarning(lcResolveUrl) << job->errorMessage(); return; } @@ -86,7 +86,7 @@ CoreJob *ResolveUrlJobFactory::startJob(const QUrl &url) }); connect(dialog, &UpdateUrlDialog::rejected, job, [=]() { - setJobError(job, tr("User rejected redirect from %1 to %2").arg(oldUrl.toDisplayString(), newUrl.toDisplayString()), QNetworkReply::InsecureRedirectError); + setJobError(job, tr("User rejected redirect from %1 to %2").arg(oldUrl.toDisplayString(), newUrl.toDisplayString()), nullptr); }); dialog->show(); @@ -114,7 +114,7 @@ CoreJob *ResolveUrlJobFactory::startJob(const QUrl &url) }); connect(tlsErrorDialog, &TlsErrorDialog::rejected, job, [job]() { - setJobError(job, tr("User rejected invalid SSL certificate"), QNetworkReply::SslHandshakeFailedError); + setJobError(job, tr("User rejected invalid SSL certificate"), nullptr); }); tlsErrorDialog->show(); |