Debugger: Handle manually set catch breakpoint gracefully

Task-number: QTCREATORBUG-10096
Change-Id: Ia9458840247ae1815751e3c58e1f21990af0cc34
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-09-19 14:15:58 +02:00
parent a27402c7dc
commit d3d66bb39d
2 changed files with 15 additions and 1 deletions

View File

@@ -986,6 +986,8 @@ void BreakHandler::notifyBreakpointReleased(BreakpointModelId id)
|| it->data.type == WatchpointAtExpression
|| it->data.type == BreakpointByAddress)
it->data.enabled = false;
else
it->data.address = 0;
layoutChanged();
}
@@ -1073,7 +1075,7 @@ void BreakHandler::handleAlienBreakpoint(const BreakpointResponse &response, Deb
else
setResponse(id, response);
} else {
BreakpointModelId id(++currentId);
id = BreakpointModelId(++currentId);
const int row = m_storage.size();
beginInsertRows(QModelIndex(), row, row);