Commit b678302d authored by Laurent Montel's avatar Laurent Montel
Browse files

Port deprecated method

parent bc581cc6
......@@ -60,7 +60,7 @@ int KOrganizerApp::activate(const QStringList &args, const QString &workingDir)
fetchJob->fetchScope().fetchFullPayload();
connect(fetchJob, &Akonadi::ItemFetchJob::result, this, [](KJob *job) {
if (job->error()) {
KMessageBox::detailedSorry(nullptr, i18n("Failed to retrieve incidence from Akonadi"), job->errorText());
KMessageBox::detailedError(nullptr, i18n("Failed to retrieve incidence from Akonadi"), job->errorText());
return;
}
auto fetchJob = static_cast<Akonadi::ItemFetchJob *>(job);
......
Supports Markdown
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