mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16: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()) {
|
if (!func["blocks"].toArray().isEmpty()) {
|
||||||
computeGraph(entry);
|
computeGraph(entry);
|
||||||
showBlock(blocks[entry]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ GraphWidget::GraphWidget(MainWindow *main, QAction *action) :
|
|||||||
if (visibility) {
|
if (visibility) {
|
||||||
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Graph);
|
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Graph);
|
||||||
this->graphView->refreshView();
|
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) {
|
connect(this, &QDockWidget::visibilityChanged, this, [ = ](bool visibility) {
|
||||||
if (visibility) {
|
if (visibility) {
|
||||||
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Graph);
|
|
||||||
updateContents();
|
updateContents();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user