Commit 9ca77813 authored by Laurent Montel's avatar Laurent Montel 😁

Add messagebox

parent 86f4726b
......@@ -19,8 +19,10 @@
#include "checkbeforesendinterface.h"
#include <KMessageBox>
#include <KConfigGroup>
#include <KSharedConfig>
#include <KLocalizedString>
CheckBeforeSendInterface::CheckBeforeSendInterface(QObject *parent)
: MessageComposer::PluginEditorCheckBeforeSendInterface(parent),
......@@ -39,7 +41,11 @@ bool CheckBeforeSendInterface::exec(const MessageComposer::PluginEditorCheckBefo
{
if (mSendPlainText) {
if (params.isHtmlMail()) {
return false;
if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(), i18n("Do you want to send mail as HTML?"), i18n("Send Mail as PlainText"))) {
return false;
} else {
return true;
}
}
}
return true;
......
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