mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix Graph Refreshing
This commit is contained in:
parent
c4df89c6d4
commit
97cacd15f4
@ -164,8 +164,13 @@ void DisassemblerGraphView::loadCurrentGraph()
|
||||
.set("asm.bbline", false)
|
||||
.set("asm.lines", false)
|
||||
.set("asm.lines.fcn", false);
|
||||
QJsonDocument functionsDoc = Core()->cmdj("agJ " + RAddressString(seekable->getOffset()));
|
||||
QJsonArray functions = functionsDoc.array();
|
||||
|
||||
QJsonArray functions;
|
||||
RAnalFunction *fcn = Core()->functionAt(seekable->getOffset());
|
||||
if (fcn) {
|
||||
QJsonDocument functionsDoc = Core()->cmdj("agJ " + RAddressString(fcn->addr));
|
||||
functions = functionsDoc.array();
|
||||
}
|
||||
|
||||
disassembly_blocks.clear();
|
||||
blocks.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user