Commit 2449e391 authored by Laurent Montel's avatar Laurent Montel 😁

Adapt to new api

parent 60e1c60a
......@@ -69,7 +69,7 @@ set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(GRAVATAR_LIB_VERSION "5.2.40")
set(INCIDENCEEDITOR_LIB_VERSION "5.2.40")
set(KTNEF_LIB_VERSION "5.2.40")
set(MESSAGELIB_LIB_VERSION "5.2.82")
set(MESSAGELIB_LIB_VERSION "5.2.84")
set(AKONADICALENDAR_LIB_VERSION "5.2.40")
set(CALENDAR_UTILS_VERSION "5.2.41")
......
......@@ -45,7 +45,8 @@ ConfirmAddressInterface::~ConfirmAddressInterface()
bool ConfirmAddressInterface::exec(const MessageComposer::PluginEditorCheckBeforeSendParams &params)
{
if (mEnabled) {
if (params.addresses().isEmpty()) {
const QStringList lst{ params.bccAddresses(), params.toAddresses(), params.ccAddresses() };
if (lst.isEmpty()) {
return true;
}
// not configurated => validate it.
......@@ -53,7 +54,7 @@ bool ConfirmAddressInterface::exec(const MessageComposer::PluginEditorCheckBefor
if (settings.mDomains.isEmpty() && settings.mWhiteLists.isEmpty()) {
return true;
}
const QString str = params.addresses().join(QStringLiteral(", "));
const QString str = lst.join(QStringLiteral(", "));
const QStringList emails = str.split(QStringLiteral(", "));
#if 0
MessageComposer::AliasesExpandJob job(params.addresses().join(QStringLiteral(", ")), params.defaultDomain(), this);
......
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