mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +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)
|
||||
{
|
||||
RVA curAddr = seekable->getOffset();
|
||||
if (addr == curAddr) {
|
||||
return;
|
||||
}
|
||||
connectSeekChanged(true);
|
||||
seekable->seek(addr);
|
||||
connectSeekChanged(false);
|
||||
|
@ -39,6 +39,7 @@ GraphWidget::GraphWidget(MainWindow *main, QAction *action) :
|
||||
emit graphEmpty();
|
||||
}
|
||||
if (type == CutterCore::MemoryWidgetType::Graph && !emptyGraph) {
|
||||
this->raise();
|
||||
this->graphView->setFocus();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user