Changed default double-click behavior to follow jumps and calls in disassembly and stack widgets (#2398)
This commit is contained in:
parent
6ad3a5b558
commit
cd91d863ad
|
@ -102,7 +102,12 @@ void CPUDisassembly::mouseDoubleClickEvent(QMouseEvent* event)
|
|||
|
||||
// (Disassembly) Assemble dialog
|
||||
case 2:
|
||||
assembleSlot();
|
||||
{
|
||||
duint dest = DbgGetBranchDestination(rvaToVa(getInitialSelection()));
|
||||
|
||||
if(DbgMemIsValidReadPtr(dest))
|
||||
gotoAddress(dest);
|
||||
}
|
||||
break;
|
||||
|
||||
// (Comments) Set comment dialog
|
||||
|
|
|
@ -530,11 +530,20 @@ void CPUStack::mouseDoubleClickEvent(QMouseEvent* event)
|
|||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
case 1: // value
|
||||
{
|
||||
modifySlot();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
{
|
||||
duint wVa = rvaToVa(getInitialSelection());
|
||||
STACK_COMMENT comment;
|
||||
if(DbgStackCommentGet(wVa, &comment) && strcmp(comment.color, "!rtnclr") == 0)
|
||||
followDisasmSlot();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue