From af9c5be37e6235d4fe03466cee8376f705775cc6 Mon Sep 17 00:00:00 2001 From: dmknght Date: Sat, 3 Nov 2018 23:00:19 +0700 Subject: [PATCH] Correct "Rename function" in menu (#904) --- src/menus/DisassemblyContextMenu.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index b42fce16..9ec170ae 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -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);