Better solution for the infinite loop (#1232)

This commit is contained in:
Vanellope 2019-03-02 17:07:05 +09:00 committed by xarkes
parent 670c59439b
commit c78957b328
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -39,6 +39,7 @@ GraphWidget::GraphWidget(MainWindow *main, QAction *action) :
emit graphEmpty();
}
if (type == CutterCore::MemoryWidgetType::Graph && !emptyGraph) {
this->raise();
this->graphView->setFocus();
}
});