Valgrind: Enable heob menu entry only if debugging is possible

Change-Id: Ifc2b029538c1dd48e1e9853d52eb1ffae38ea325
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Hannes Domani
2018-01-06 17:31:05 +01:00
parent 6ced413e03
commit 6f63da3728

View File

@@ -671,6 +671,9 @@ MemcheckTool::MemcheckTool()
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+H")));
connect(action, &QAction::triggered, this, &MemcheckTool::heobAction);
menu->addAction(cmd, Debugger::Constants::G_ANALYZER_TOOLS);
connect(m_startAction, &QAction::changed, action, [action, this] {
action->setEnabled(m_startAction->isEnabled());
});
}
action = new QAction(this);