don't use deprecated method

wilder
Montel Laurent 9 years ago
parent 6ac894b111
commit aa453cdc0d
  1. 2
      src/util/mailutil.cpp

@ -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();

Loading…
Cancel
Save