[pim/kdepim-addons] kmail/editorconvertertextplugins/markdown/plugin: We have 6 levels
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5965439cb1218022d7cff56c83f2ea01ee2756d8 by Laurent Montel.
Committed on 16/08/2026 at 15:04.
Pushed by mlaurent into branch 'master'.
We have 6 levels
M +1 -1 kmail/editorconvertertextplugins/markdown/plugin/markdowninterface.cpp
https://invent.kde.org/pim/kdepim-addons/-/commit/5965439cb1218022d7cff56c83f2ea01ee2756d8
diff --git a/kmail/editorconvertertextplugins/markdown/plugin/markdowninterface.cpp b/kmail/editorconvertertextplugins/markdown/plugin/markdowninterface.cpp
index 42aad4bba..d2d8faef1 100644
--- a/kmail/editorconvertertextplugins/markdown/plugin/markdowninterface.cpp
+++ b/kmail/editorconvertertextplugins/markdown/plugin/markdowninterface.cpp
@@ -61,7 +61,7 @@ void MarkdownInterface::createAction(KActionCollection *ac)
mPopupMenuAction->setEnabled(false);
auto titleMenu = new QMenu(i18n("Add Title"), mardownMenu);
mardownMenu->addMenu(titleMenu);
- for (int i = 1; i < 5; ++i) {
+ for (int i = 1; i < 6; ++i) {
titleMenu->addAction(i18n("Level %1", QString::number(i)), this, [this, i]() {
addTitle(i);
});