mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-20 21:56:06 +00:00
* Toggle remove option for string definition of instruction (#2059)
This commit is contained in:
parent
f8a29e27cb
commit
ddeb7fbe53
@ -459,6 +459,10 @@ void DisassemblyContextMenu::aboutToShowSlot()
|
||||
|
||||
actionAnalyzeFunction.setVisible(true);
|
||||
|
||||
// Show the option to remove a defined string only if a string is defined in this address
|
||||
QString stringDefinition = Core()->cmd("Cs. @ " + RAddressString(offset));
|
||||
actionSetAsStringRemove.setVisible(!stringDefinition.isEmpty());
|
||||
|
||||
QString comment = Core()->cmd("CC." + RAddressString(offset));
|
||||
if (comment.isNull() || comment.isEmpty()) {
|
||||
actionDeleteComment.setVisible(false);
|
||||
|
Loading…
Reference in New Issue
Block a user