mirror of
https://github.com/x64dbg/x64dbg.git
synced 2024-11-27 06:40:24 +00:00
Add action to context menu appropriately
This commit is contained in:
parent
80b86f9257
commit
01dae0666d
@ -68,7 +68,13 @@ void TraceRegisters::displayCustomContextMenuSlot(QPoint pos)
|
||||
menu.addAction(mDisplayMMX);
|
||||
}
|
||||
|
||||
menu.addAction(wCM_SetRegister);
|
||||
if((!mNoChange.contains(mSelected)) ||
|
||||
mSelected == LastError ||
|
||||
mSelected == LastStatus ||
|
||||
mSelected == CIP)
|
||||
{
|
||||
menu.addAction(wCM_SetRegister);
|
||||
}
|
||||
|
||||
menu.exec(this->mapToGlobal(pos));
|
||||
}
|
||||
@ -140,7 +146,7 @@ void TraceRegisters::onSetRegister()
|
||||
}
|
||||
|
||||
// we change the value (so highlight it)
|
||||
mRegisterUpdates.insert(reg);
|
||||
// mRegisterUpdates.insert(reg);
|
||||
|
||||
qDebug() << "This is the value " << value;
|
||||
qDebug() << "This is the string " << regName.toUtf8().constData();
|
||||
@ -148,7 +154,7 @@ void TraceRegisters::onSetRegister()
|
||||
DbgValToString(regName.toUtf8().constData(), value);
|
||||
|
||||
// force repaint
|
||||
emit refresh();
|
||||
// emit refresh();
|
||||
}
|
||||
|
||||
void TraceRegisters::mouseDoubleClickEvent(QMouseEvent* event)
|
||||
|
Loading…
Reference in New Issue
Block a user