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 bbfbded4 authored by Laurent Montel's avatar Laurent Montel 😁

Fix coding style

parent 8b59ff94
......@@ -129,13 +129,11 @@ void MarkdownInterface::slotActivated(bool checked)
if (mDialog.isNull()) {
mDialog = new MarkdownPreviewDialog(parentWidget());
mDialog->setText(richTextEditor()->toPlainText());
connect(richTextEditor(), &KPIMTextEdit::RichTextEditor::textChanged, this, [this]()
{
connect(richTextEditor(), &KPIMTextEdit::RichTextEditor::textChanged, this, [this]() {
if (mDialog) {
mDialog->setText(richTextEditor()->toPlainText());
}
}
);
});
}
if (checked) {
mDialog->show();
......
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