forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user