summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-08-12 08:08:39 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-08-12 07:52:42 +0000
commite47a01c3cb3e1998de2150787d00903c487662ac (patch)
tree113bccdaae7e13e4774ca279b93d668d3a66c3e1 /src/plugins/debugger
parent596e4b041a5ac7ca53b6dfd9de69b3226100d057 (diff)
downloadqt-creator-e47a01c3cb3e1998de2150787d00903c487662ac.tar.gz
Debugger: Update breakpoint marker earlier
Since the distinction between global and engine breakpoints we may not update the breakpoint marker correctly which in turn appears as if the breakpoint had been failed to set. Fix this by updating the breakpoint marker already on insertion request. Change-Id: I7c4ed046c26667e6aa1efceb5071c12a6d1e6132 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/breakhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 9ac8b0bfb4..8befb49f8e 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -1302,7 +1302,7 @@ void BreakpointItem::setState(BreakpointState state)
m_state = state;
// FIXME: updateMarker() should recognize the need for icon changes.
- if (state == BreakpointInserted) {
+ if (state == BreakpointInserted || state == BreakpointInsertionRequested) {
destroyMarker();
updateMarker();
}