Commit 77e28974 authored by Laurent Montel's avatar Laurent Montel 😁

Replace setPlainText as it clear the undo/redo so we can't fix error

parent a92446d8
......@@ -242,7 +242,9 @@ void SieveEditorTextModeWidget::createRulesGraphically()
if (!requires.isEmpty()) {
newPlainText.prepend(requires + QLatin1Char('\n'));
}
mTextEdit->setPlainText(newPlainText);
mTextEdit->selectAll();
mTextEdit->insertPlainText(newPlainText);
}
delete dlg;
}
......
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