https://bugs.kde.org/show_bug.cgi?id=503813
--- Comment #39 from ulte...@gmail.com --- Successfully reproduced similar behaviour to the bug in https://invent.kde.org/ulterno/UsingKTextEditor/-/commit/aab2bcf1b29aadabb89992404c94bf955a989e43 Not crashing, but calling the Menu twice, when using the keyboard Menu key. Attempting the same inside QTextEdit::contextMenuEvent, did not reproduce the bug. i.e. The menu was not called twice when using the keyboard Menu key. So, only able to do it with KTextEditor::View ___ Modifying the function as shown below: void KDevelop::TextDocument::populateContextMenu( KTextEditor::View* v, QMenu* menu ) { ... if (d->addedContextMenu) { qCWarning (SHELL) << "populateContextMenu() called while we still handled another menu."; if (menu == d->currentContextMenu) { // Of the same thing, then don't delete and don't retry. This line depends upon cleanContextMenu working as required qCDebug (SHELL) << "Pointer of the new context menu is the same... Not cleaning, not remaking"; return; } d->cleanContextMenu(); } ... } can be considered a hotfix. -- You are receiving this mail because: You are watching all bug changes.