aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestplugin.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2018-05-23 13:24:04 +0200
committerChristian Stenger <christian.stenger@qt.io>2018-05-23 11:26:18 +0000
commit59f864a758678449a6a1492d9967d1508fc79ecd (patch)
treef4b1e454d6c0789c404964900e8d3881e0e03ba9 /src/plugins/autotest/autotestplugin.cpp
parent478fda1b76cd6d69014819a422c891ebeb140df1 (diff)
AutoTest: Silence soft assert
Change-Id: I6aa2490971fcf4fbbbbc0bad570406e349029b32 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index e3b48316c7..61148f7557 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);