Commit 20811627 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: fix crash when enabling/disabling a breakpoint without a marker



This can happen for data breakpoints.

Task-number: QTCREATORBUG-7334
Change-Id: I0830ad68e5463bafb5399bae36bf276e5247b42c
Reviewed-by: default avatarRobert Löhning <robert.loehning@nokia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent c6b83265
......@@ -1426,8 +1426,10 @@ bool BreakHandler::BreakpointItem::isLocatedAt
void BreakHandler::BreakpointItem::updateMarkerIcon()
{
marker->setIcon(icon());
marker->updateMarker();
if (marker) {
marker->setIcon(icon());
marker->updateMarker();
}
}
void BreakHandler::BreakpointItem::updateMarker(BreakpointModelId id)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment