void Breakpoint::setDeleted() { deleted_ = true; BreakpointModel* m = breakpointModel(); if (m->breakpointIndex(this, 0).isValid()) { m->removeRow(m->breakpointIndex(this, 0).row()); } }
void Breakpoint::setDeleted() { m_deleted = true; BreakpointModel* m = breakpointModel(); if (!m) return; // already removed if (m->breakpointIndex(this, 0).isValid()) { m->removeRow(m->breakpointIndex(this, 0).row()); } m_model = nullptr; // invalidate }