diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index 20f5ade3ef0..6db35bdff0d 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -1389,6 +1389,10 @@ void QmlJSTextEditorWidget::contextMenuEvent(QContextMenuEvent *e) menu->addAction(action); if (action->objectName() == QmlJSEditor::Constants::M_REFACTORING_MENU_INSERTION_POINT) menu->addMenu(refactoringMenu); + if (action->objectName() == QmlJSEditor::Constants::SHOW_QT_QUICK_HELPER) { + bool enabled = m_contextPane->isAvailable(editor(), semanticInfo().document, m_semanticInfo.declaringMemberNoProperties(position())); + action->setEnabled(enabled); + } } }