Add "Graph" to graph title

This commit is contained in:
Florian Märkl 2017-11-21 18:48:01 +01:00
parent 130996f593
commit 5753ebd54d

View File

@ -1533,7 +1533,15 @@ void DisassemblerGraphView::loadCurrentGraph()
Function f;
f.ready = true;
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;
for (QJsonValueRef blockRef : func["blocks"].toArray()) {