Commit 34f22c4a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Get info about displaying format

parent d1251abf
......@@ -2100,13 +2100,14 @@ void KMMainWidget::slotCustomReplyAllToMsg(const QString &tmpl)
qCDebug(KMAIL_LOG) << "Reply to All with template:" << tmpl;
KMCommand *command = new KMReplyCommand(this,
KMReplyCommand *command = new KMReplyCommand(this,
msg,
MessageComposer::ReplyAll,
text,
false,
tmpl
);
command->setReplyAsHtml(messageView()->htmlMail());
command->start();
}
......@@ -4812,6 +4813,7 @@ void KMMainWidget::replyCurrentMessageCommand(MessageComposer::ReplyStrategy str
}
const QString text = messageView()->copyText();
KMReplyCommand *command = new KMReplyCommand(this, currentItem, strategy, text);
command->setReplyAsHtml(messageView()->htmlMail());
command->start();
}
}
......@@ -4823,6 +4825,7 @@ void KMMainWidget::slotReplyMessageTo(const KMime::Message::Ptr &message, bool r
item.setPayload<KMime::Message::Ptr>(message);
item.setMimeType(KMime::Message::mimeType());
KMReplyCommand *command = new KMReplyCommand(this, item, replyToAll ? MessageComposer::ReplyAll : MessageComposer::ReplyAuthor);
command->setReplyAsHtml(messageView()->htmlMail());
command->start();
}
......
......@@ -393,6 +393,7 @@ void KMReaderMainWin::slotCustomReplyToMsg(const QString &tmpl)
MessageComposer::ReplySmart,
mReaderWin->copyText(),
false, tmpl);
command->setReplyAsHtml(mReaderWin->htmlMail());
connect(command, &KMReplyCommand::completed, this, &KMReaderMainWin::slotReplyOrForwardFinished);
command->start();
}
......@@ -408,6 +409,7 @@ void KMReaderMainWin::slotCustomReplyAllToMsg(const QString &tmpl)
MessageComposer::ReplyAll,
mReaderWin->copyText(),
false, tmpl);
command->setReplyAsHtml(mReaderWin->htmlMail());
connect(command, &KMReplyCommand::completed, this, &KMReaderMainWin::slotReplyOrForwardFinished);
command->start();
......
......@@ -522,8 +522,9 @@ void KMReaderWin::slotSaveImageOnDisk()
void KMReaderWin::slotMailtoReply()
{
KMCommand *command = new KMMailtoReplyCommand(mMainWindow, urlClicked(),
KMMailtoReplyCommand *command = new KMMailtoReplyCommand(mMainWindow, urlClicked(),
message(), copyText());
command->setReplyAsHtml(htmlMail());
command->start();
}
......
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