mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 22:05:25 +00:00
Better solution for the infinite loop (#1232)
This commit is contained in:
parent
670c59439b
commit
c78957b328
@ -792,6 +792,10 @@ void DisassemblerGraphView::prevInstr()
|
|||||||
|
|
||||||
void DisassemblerGraphView::seekLocal(RVA addr, bool update_viewport)
|
void DisassemblerGraphView::seekLocal(RVA addr, bool update_viewport)
|
||||||
{
|
{
|
||||||
|
RVA curAddr = seekable->getOffset();
|
||||||
|
if (addr == curAddr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
connectSeekChanged(true);
|
connectSeekChanged(true);
|
||||||
seekable->seek(addr);
|
seekable->seek(addr);
|
||||||
connectSeekChanged(false);
|
connectSeekChanged(false);
|
||||||
|
@ -39,6 +39,7 @@ GraphWidget::GraphWidget(MainWindow *main, QAction *action) :
|
|||||||
emit graphEmpty();
|
emit graphEmpty();
|
||||||
}
|
}
|
||||||
if (type == CutterCore::MemoryWidgetType::Graph && !emptyGraph) {
|
if (type == CutterCore::MemoryWidgetType::Graph && !emptyGraph) {
|
||||||
|
this->raise();
|
||||||
this->graphView->setFocus();
|
this->graphView->setFocus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user