Commit f32eab0a authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from KToolInvocation::invokeMailer

It is deprecated

Use KEMailClientLauncherJob, which has the benefit of actually working with Thunderbird
parent 7b7d9202
Pipeline #180789 passed with stage
in 5 minutes and 16 seconds
......@@ -9,7 +9,8 @@ cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR)
project(kolourpaint VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION "5.11.0")
set(KF5_MIN_VERSION "5.67.0")
set(KF5_MIN_VERSION "5.87.0")
set(KDE_COMPILERSETTINGS_LEVEL "5.84.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......
......@@ -53,6 +53,7 @@
#include <QPrintPreviewDialog>
#include <KActionCollection>
#include <KEMailClientLauncherJob>
#include <KSharedConfig>
#include <KConfigGroup>
#include <KFileCustomDialog>
......@@ -61,7 +62,6 @@
#include <KRecentFilesAction>
#include <KStandardShortcut>
#include <KStandardAction>
#include <KToolInvocation>
#include <KLocalizedString>
#include "kpLogCategories.h"
......@@ -1427,14 +1427,10 @@ void kpMainWindow::slotMail ()
}
}
KToolInvocation::invokeMailer (
QString()/*to*/,
QString()/*cc*/,
QString()/*bcc*/,
d->document->prettyFilename()/*subject*/,
QString()/*body*/,
QString()/*messageFile*/,
QStringList(d->document->url().url())/*attachments*/);
auto *job = new KEMailClientLauncherJob;
job->setSubject(d->document->prettyFilename());
job->setAttachments({d->document->url()});
job->start();
}
//---------------------------------------------------------------------
......
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