diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 2c9868e..3679eaf 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -1772,7 +1772,10 @@ void CPPEditorWidget::contextMenuEvent(QContextMenuEvent *e) // ### enable // updateSemanticInfo(m_semanticHighlighter->semanticInfo(currentSource())); + static int n = 0; QPointer menu(new QMenu(this)); + menu->setObjectName(QLatin1String("CppMenu") + QString::number(n++)); + qDebug() << __FUNCTION__ << menu.data(); Core::ActionContainer *mcontext = Core::ActionManager::actionContainer(Constants::M_CONTEXT); QMenu *contextMenu = mcontext->menu();