Debugger: Properly delete breakpoints when triggered from view

If the removal is triggered from the view, the engine needs
to be informed. If it's triggered from the engine, the view
needs to be informed.

Change-Id: I3505130c5b4b0b3752401a94599af9a06662f002
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-02-02 11:50:00 +01:00
parent 067ea9cdd6
commit 7a188fe70a

View File

@@ -781,7 +781,7 @@ void Breakpoint::removeAlienBreakpoint()
void Breakpoint::removeBreakpoint() const
{
b->deleteThis();
b->removeBreakpoint();
}
Breakpoint::Breakpoint(BreakpointItem *b)
@@ -1020,8 +1020,6 @@ void Breakpoint::notifyBreakpointNeedsReinsertion()
b->m_state = BreakpointInsertRequested;
}
void BreakpointItem::removeBreakpoint()
{
switch (m_state) {