forked from qt-creator/qt-creator
AutoTest: Silence soft assert
Change-Id: I6aa2490971fcf4fbbbbc0bad570406e349029b32 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -185,7 +185,8 @@ bool AutotestPlugin::initialize(const QStringList &arguments, QString *errorStri
|
|||||||
void AutotestPlugin::extensionsInitialized()
|
void AutotestPlugin::extensionsInitialized()
|
||||||
{
|
{
|
||||||
ActionContainer *contextMenu = ActionManager::actionContainer(CppEditor::Constants::M_CONTEXT);
|
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);
|
QAction *action = new QAction(tr("&Run Test Under Cursor"), this);
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user