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>
This commit is contained in:
Christian Stenger
2019-08-12 08:08:39 +02:00
parent 596e4b041a
commit e47a01c3cb

View File

@@ -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();
}