Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 759deb94 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to check all features

parent 5d35e73f
......@@ -51,8 +51,6 @@ bool CheckBeforeSendInterface::exec(const MessageComposer::PluginEditorCheckBefo
if (params.isHtmlMail()) {
if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to send the email as HTML?"), i18n("Send email as plain text"))) {
return false;
} else {
return true;
}
}
}
......@@ -62,8 +60,6 @@ bool CheckBeforeSendInterface::exec(const MessageComposer::PluginEditorCheckBefo
if (KMessageBox::No
== KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to send the email with a different SMTP than the one defined in the current identity?"), i18n("Check SMTP server"))) {
return false;
} else {
return true;
}
}
}
......@@ -86,12 +82,15 @@ bool CheckBeforeSendInterface::exec(const MessageComposer::PluginEditorCheckBefo
if (!results.isEmpty()) {
QPointer<CheckDuplicateEmailsDialog> dlg = new CheckDuplicateEmailsDialog(parentWidget());
dlg->setDuplicatedEmails(results);
bool result = false;
if (dlg->exec()) {
delete dlg;
return true;
result = true;
} else {
delete dlg;
return false;
result = false;
}
delete dlg;
if (!result) {
return result;
}
}
}
......
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