Correct "Rename function" in menu (#904)

This commit is contained in:
dmknght 2018-11-03 23:00:19 +07:00 committed by xarkes
parent 313e8b17cd
commit af9c5be37e

View File

@ -294,7 +294,12 @@ void DisassemblyContextMenu::aboutToShowSlot()
RVA offset = thingUsedHere["offset"].toVariant().toULongLong(); RVA offset = thingUsedHere["offset"].toVariant().toULongLong();
actionRenameUsedHere.setText(tr("Add flag at %1 (used here)").arg(RAddressString(offset))); actionRenameUsedHere.setText(tr("Add flag at %1 (used here)").arg(RAddressString(offset)));
} else { } else {
actionRenameUsedHere.setText(tr("Rename \"%1\" (used here)").arg(thingUsedHere["name"].toString())); if (thingUsedHere["type"] == "function") {
actionRenameUsedHere.setText(tr("Rename \"%1\"").arg(thingUsedHere["name"].toString()));
}
else {
actionRenameUsedHere.setText(tr("Rename \"%1\" (used here)").arg(thingUsedHere["name"].toString()));
}
} }
} else { } else {
actionRenameUsedHere.setVisible(false); actionRenameUsedHere.setVisible(false);