Don't refresh graph breakpoints during redraw.

This commit is contained in:
Kārlis Seņko 2022-08-12 16:53:43 +03:00 committed by karliss
parent 756850ae27
commit 550c416c04

View File

@ -170,6 +170,7 @@ void DisassemblerGraphView::refreshView()
{ {
CutterGraphView::refreshView(); CutterGraphView::refreshView();
loadCurrentGraph(); loadCurrentGraph();
breakpoints = Core()->getBreakpointsAddresses();
emit viewRefreshed(); emit viewRefreshed();
} }
@ -370,8 +371,6 @@ void DisassemblerGraphView::drawBlock(QPainter &p, GraphView::GraphBlock &block,
p.setFont(Config()->getFont()); p.setFont(Config()->getFont());
p.drawRect(blockRect); p.drawRect(blockRect);
breakpoints = Core()->getBreakpointsAddresses();
// Render node // Render node
DisassemblyBlock &db = disassembly_blocks[block.entry]; DisassemblyBlock &db = disassembly_blocks[block.entry];
bool block_selected = false; bool block_selected = false;