Commit 2822e658 authored by Igor Poboiko's avatar Igor Poboiko
Browse files

[RichTextComposer] Remove stray backspace/delete handling code for headings

The current code, unfortunately, resets rich text formatting for current line every time user presses backspace.
It could be safely removed, as the proper code which resets it only when needed was backported
as a part of 4092f7f0 commit.

Test Plan: backspace no longer resets formatting on a line with i.e. bold word

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision:
parent f58b8ea9
......@@ -436,14 +436,6 @@ 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 (d->mode == RichTextComposer::Rich) {
if ((event->key() == Qt::Key_Backspace) || (event->key() == Qt::Key_Delete)) {
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