forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user