https://bugs.kde.org/show_bug.cgi?id=503813
--- Comment #23 from ulte...@gmail.com --- > Another thing you could try is create a small Qt application and see if two > menus are created in it too when the Menu key is pressed. Then you could > report a Qt bug with the minimum reproducible example attached. Well, if that happened, I would expect it to crash in other applications using KTextEditor::View, like this KWrite that I am using. > By the way, have you verified that only one menu is created when you > right-click instead of pressing the Menu key? At least visually, I see only a single menu. But as you see from this line in the debug output: "2025-05-08T18:58:28.116" KDevelop::TextDocument::createViewWidget(QWidget*)::<lambda()> Context menu about to show Caused by: // Added code connect (view, &KTextEditor::View::contextMenuAboutToShow, this, []() { qDebug() << QDateTime::currentDateTime().toString (Qt::ISODateWithMs) << __PRETTY_FUNCTION__ << "Context menu about to show"; }); // Above this line connect (view, &KTextEditor::View::contextMenuAboutToShow, this, &TextDocument::populateContextMenu); The signal, contextMenuAboutToShow is called twice. After finding this out, I went on a tangent trying to see if doing stuff with KTextEditor might fix something, which I couldn't check back then, because I wasn't able to set up KDevelop to use it despite setting -DKF6TextEditor_DIR:PATH=/run/media/ulterno/Data/code/KDE/Frameworks/KTextEditor/install/lib/cmake/KF6TextEditor in QtCreator. Guess I can try that again. -- You are receiving this mail because: You are watching all bug changes.