forked from qt-creator/qt-creator
BreakHandler: DebuggerEngine for breakpointId
Suppress ASSERT if id is invalid. This prevents printing <invalidBkpt> when adding the first breakpoint using the breakpoint dialog. Change-Id: I3c989981cdbac597e8f314c0146507e5bb6c797d Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -101,6 +101,7 @@ BreakpointDialog::BreakpointDialog(BreakpointModelId id, QWidget *parent)
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
m_ui.comboBoxType->setMaxVisibleItems(20);
|
||||
if (id.isValid()) {
|
||||
if (DebuggerEngine *engine = breakHandler()->engine(id)) {
|
||||
if (!engine->hasCapability(BreakConditionCapability))
|
||||
m_enabledParts &= ~ConditionPart;
|
||||
@@ -109,6 +110,7 @@ BreakpointDialog::BreakpointDialog(BreakpointModelId id, QWidget *parent)
|
||||
if (!engine->hasCapability(TracePointCapability))
|
||||
m_enabledParts &= ~TracePointPart;
|
||||
}
|
||||
}
|
||||
// Match BreakpointType (omitting unknown type).
|
||||
QStringList types;
|
||||
types << tr("File name and line number")
|
||||
|
||||
Reference in New Issue
Block a user