From 59f864a758678449a6a1492d9967d1508fc79ecd Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 23 May 2018 13:24:04 +0200 Subject: [PATCH] AutoTest: Silence soft assert Change-Id: I6aa2490971fcf4fbbbbc0bad570406e349029b32 Reviewed-by: David Schulz --- src/plugins/autotest/autotestplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);