mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
parent
adef80e9e8
commit
377efa7050
@ -132,6 +132,11 @@ void DisassemblyContextMenu::on_actionRename_triggered()
|
|||||||
{
|
{
|
||||||
// Get function for clicked offset
|
// Get function for clicked offset
|
||||||
RAnalFunction *fcn = CutterCore::getInstance()->functionAt(offset);
|
RAnalFunction *fcn = CutterCore::getInstance()->functionAt(offset);
|
||||||
|
if( nullptr == fcn )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
RenameDialog *dialog = new RenameDialog(this);
|
RenameDialog *dialog = new RenameDialog(this);
|
||||||
// Get function based on click position
|
// Get function based on click position
|
||||||
dialog->setFunctionName(fcn->name);
|
dialog->setFunctionName(fcn->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user