diff options
author | hjk <[email protected]> | 2013-09-19 14:15:58 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2013-09-19 18:00:15 +0200 |
commit | d3d66bb39db599557096a4f3eaabaf1d9a063aa6 (patch) | |
tree | f0afc2b4470affa5230afa15672c7593be133fca /src/plugins/debugger/breakhandler.cpp | |
parent | a27402c7dcae77c1d09a5b40740f07f263334a0f (diff) |
Debugger: Handle manually set catch breakpoint gracefully
Task-number: QTCREATORBUG-10096
Change-Id: Ia9458840247ae1815751e3c58e1f21990af0cc34
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 2e37685a7db..597c06480a4 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -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); |