mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +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();
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user