From d42475fd908c089fbb29950e8e782acf3d0fd9f8 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Tue, 29 Sep 2009 14:41:24 +0200 Subject: [PATCH] Enable find references. --- src/plugins/cppeditor/cppplugin.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp index 834e32fcfd4..35dc849988d 100644 --- a/src/plugins/cppeditor/cppplugin.cpp +++ b/src/plugins/cppeditor/cppplugin.cpp @@ -220,14 +220,12 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess contextMenu->addAction(cmd); am->actionContainer(CppTools::Constants::M_TOOLS_CPP)->addAction(cmd); - if (! qgetenv("QTCREATOR_REFERENCES").isEmpty()) { - QAction *findReferencesAction = new QAction(tr("Find References"), this); - cmd = am->registerAction(findReferencesAction, - Constants::FIND_REFERENCES, context); - connect(findReferencesAction, SIGNAL(triggered()), this, SLOT(findReferences())); - contextMenu->addAction(cmd); - am->actionContainer(CppTools::Constants::M_TOOLS_CPP)->addAction(cmd); - } + QAction *findReferencesAction = new QAction(tr("Find References"), this); + cmd = am->registerAction(findReferencesAction, + Constants::FIND_REFERENCES, context); + connect(findReferencesAction, SIGNAL(triggered()), this, SLOT(findReferences())); + contextMenu->addAction(cmd); + am->actionContainer(CppTools::Constants::M_TOOLS_CPP)->addAction(cmd); m_actionHandler = new TextEditor::TextEditorActionHandler(CppEditor::Constants::C_CPPEDITOR, TextEditor::TextEditorActionHandler::Format -- GitLab