diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp index e3b48316c7c..61148f75579 100644 --- a/src/plugins/autotest/autotestplugin.cpp +++ b/src/plugins/autotest/autotestplugin.cpp @@ -185,7 +185,8 @@ bool AutotestPlugin::initialize(const QStringList &arguments, QString *errorStri void AutotestPlugin::extensionsInitialized() { ActionContainer *contextMenu = ActionManager::actionContainer(CppEditor::Constants::M_CONTEXT); - QTC_ASSERT(contextMenu, return); + if (!contextMenu) // if QC is started without CppEditor plugin + return; QAction *action = new QAction(tr("&Run Test Under Cursor"), this); action->setEnabled(false);