From 4685f4faaf0aeee4cc58e36d7bbc5bc9a4ec605e Mon Sep 17 00:00:00 2001 From: Surendrajat Date: Sun, 28 Jun 2020 00:21:05 +0530 Subject: [PATCH] Rename a context menu item (#2267) --- docs/source/user-docs/menus/disassembly-context-menu.rst | 4 ++-- src/menus/DisassemblyContextMenu.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/user-docs/menus/disassembly-context-menu.rst b/docs/source/user-docs/menus/disassembly-context-menu.rst index e745ffd3..4b82199c 100644 --- a/docs/source/user-docs/menus/disassembly-context-menu.rst +++ b/docs/source/user-docs/menus/disassembly-context-menu.rst @@ -69,11 +69,11 @@ Rename Flag/Function/Variable **Shortcut:** :kbd:`Shift` + :kbd:`N` -Re-type function local variables +Re-type Local Variables ---------------------------------------- **Description:** Rename or set the types of the function's variables and arguments. -**Steps:** Right click anywhere inside a function and then choose ``Re-type function local vars``. +**Steps:** Right click anywhere inside a function and then choose ``Re-type Local Variables``. **Shortcut:** :kbd:`Y` diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index 14e20c38..6fd9656c 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -102,7 +102,7 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent, MainWindow *main SLOT(on_actionRenameUsedHere_triggered()), getRenameUsedHereSequence()); addAction(&actionRenameUsedHere); - initAction(&actionSetFunctionVarTypes, tr("Re-type function local vars"), + initAction(&actionSetFunctionVarTypes, tr("Re-type Local Variables"), SLOT(on_actionSetFunctionVarTypes_triggered()), getRetypeSequence()); addAction(&actionSetFunctionVarTypes); @@ -860,7 +860,7 @@ void DisassemblyContextMenu::on_actionSetFunctionVarTypes_triggered() RAnalFunction *fcn = Core()->functionIn(offset); if (!fcn) { - QMessageBox::critical(this, tr("Re-type function local vars"), + QMessageBox::critical(this, tr("Re-type Local Variables"), tr("You must be in a function to define variable types.")); return; }