mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 06:33:46 +00:00
Add "Graph" to graph title
This commit is contained in:
parent
130996f593
commit
5753ebd54d
@ -1533,7 +1533,15 @@ void DisassemblerGraphView::loadCurrentGraph()
|
|||||||
Function f;
|
Function f;
|
||||||
f.ready = true;
|
f.ready = true;
|
||||||
f.entry = func["offset"].toInt();
|
f.entry = func["offset"].toInt();
|
||||||
this->parentWidget()->setWindowTitle(func["name"].toString());
|
|
||||||
|
QString windowTitle = tr("Graph");
|
||||||
|
QString funcName = func["name"].toString().trimmed();
|
||||||
|
if (!funcName.isEmpty())
|
||||||
|
{
|
||||||
|
windowTitle += " (" + funcName + ")";
|
||||||
|
}
|
||||||
|
this->parentWidget()->setWindowTitle(windowTitle);
|
||||||
|
|
||||||
f.update_id = anal.update_id;
|
f.update_id = anal.update_id;
|
||||||
|
|
||||||
for (QJsonValueRef blockRef : func["blocks"].toArray()) {
|
for (QJsonValueRef blockRef : func["blocks"].toArray()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user