Commit 251df483 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Active code only on rich text mode

parent c444aebe
......@@ -413,8 +413,10 @@ void RichTextComposer::evaluateListSupport(QKeyEvent *event)
// If a line was merged with previous one, with different heading level,
// the style should also be adjusted accordingly (i.e. merged)
if ((event->key() == Qt::Key_Backspace) || (event->key() == Qt::Key_Delete)) {
d->composerControler->setHeadingLevel(textCursor().blockFormat().headingLevel());
if (d->mode == RichTextComposer::Rich) {
if ((event->key() == Qt::Key_Backspace) || (event->key() == Qt::Key_Delete)) {
d->composerControler->setHeadingLevel(textCursor().blockFormat().headingLevel());
}
}
if (textCursor().currentList()) {
......
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