Fix a bug in seek caused by Graph refactoring (#1250)

* Fixed a bug in seek
This commit is contained in:
Vanellope 2019-03-09 02:24:59 +09:00 committed by Itay Cohen
parent 426cf96b50
commit 0dff413e17
3 changed files with 1 additions and 2 deletions

View File

@ -323,7 +323,6 @@ void DisassemblerGraphView::loadCurrentGraph()
if (!func["blocks"].toArray().isEmpty()) {
computeGraph(entry);
showBlock(blocks[entry]);
}
}

View File

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

View File

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