summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-22 08:08:38 +0200
committerMontel Laurent <[email protected]>2017-08-22 08:08:38 +0200
commitaa453cdc0d66e8dacd22d1dd3497aececdd09b05 (patch)
treefea4f563918af13f47035b7e284be36871d4ba6b
parent6ac894b1116a07e8ab019950217933e5b61841a9 (diff)
don't use deprecated method
-rw-r--r--src/util/mailutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/mailutil.cpp b/src/util/mailutil.cpp
index 0b6de0a..88aa04b 100644
--- a/src/util/mailutil.cpp
+++ b/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();