mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix a bug in seek caused by Graph refactoring (#1250)
* Fixed a bug in seek
This commit is contained in:
parent
426cf96b50
commit
0dff413e17
@ -323,7 +323,6 @@ void DisassemblerGraphView::loadCurrentGraph()
|
||||
|
||||
if (!func["blocks"].toArray().isEmpty()) {
|
||||
computeGraph(entry);
|
||||
showBlock(blocks[entry]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@ GraphWidget::GraphWidget(MainWindow *main, QAction *action) :
|
||||
if (visibility) {
|
||||
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Graph);
|
||||
this->graphView->refreshView();
|
||||
this->graphView->onSeekChanged(Core()->getOffset());
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -16,7 +16,6 @@ OverviewWidget::OverviewWidget(MainWindow *main, QAction *action) :
|
||||
|
||||
connect(this, &QDockWidget::visibilityChanged, this, [ = ](bool visibility) {
|
||||
if (visibility) {
|
||||
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Graph);
|
||||
updateContents();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user