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,8 +102,13 @@ void CPUDisassembly::mouseDoubleClickEvent(QMouseEvent* event)
|
|||
|
||||
// (Disassembly) Assemble dialog
|
||||
case 2:
|
||||
assembleSlot();
|
||||
break;
|
||||
{
|
||||
duint dest = DbgGetBranchDestination(rvaToVa(getInitialSelection()));
|
||||
|
||||
if(DbgMemIsValidReadPtr(dest))
|
||||
gotoAddress(dest);
|
||||
}
|
||||
break;
|
||||
|
||||
// (Comments) Set comment dialog
|
||||
case 3:
|
||||
|
|
|
@ -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