mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Correct "Rename function" in menu (#904)
This commit is contained in:
parent
313e8b17cd
commit
af9c5be37e
@ -294,7 +294,12 @@ void DisassemblyContextMenu::aboutToShowSlot()
|
||||
RVA offset = thingUsedHere["offset"].toVariant().toULongLong();
|
||||
actionRenameUsedHere.setText(tr("Add flag at %1 (used here)").arg(RAddressString(offset)));
|
||||
} 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 {
|
||||
actionRenameUsedHere.setVisible(false);
|
||||
|
Loading…
Reference in New Issue
Block a user