mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
Correct "Rename function" in menu (#904)
This commit is contained in:
parent
313e8b17cd
commit
af9c5be37e
@ -294,8 +294,13 @@ 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 {
|
||||||
|
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()));
|
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