Commit aa453cdc authored by Laurent Montel's avatar Laurent Montel 😁

don't use deprecated method

parent 6ac894b1
......@@ -129,7 +129,7 @@ QString MailCommon::Util::fullCollectionPath(const Akonadi::Collection &collecti
bool MailCommon::Util::showJobErrorMessage(KJob *job)
{
if (job->error()) {
if (auto uidelegate = static_cast<KIO::Job *>(job)->ui()) {
if (auto uidelegate = static_cast<KIO::Job *>(job)->uiDelegate()) {
uidelegate->showErrorMessage();
} else {
qCDebug(MAILCOMMON_LOG) << " job->errorString() :" << job->errorString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment