* Fix naming of program counter in contextmenu

This commit is contained in:
mandlebro 2018-07-24 00:13:46 +01:00 committed by xarkes
parent a37eae39d9
commit d652241ec2

View File

@ -117,8 +117,6 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent)
SLOT(on_actionAddBreakpoint_triggered())); SLOT(on_actionAddBreakpoint_triggered()));
actionContinueUntil.setText(tr("Continue until line")); actionContinueUntil.setText(tr("Continue until line"));
debugMenu->addAction(&actionContinueUntil); debugMenu->addAction(&actionContinueUntil);
QString progCounterName = Core()->getRegisterName("PC");
actionSetPC.setText("Set " + progCounterName + " here");
debugMenu->addAction(&actionSetPC); debugMenu->addAction(&actionSetPC);
connect(&actionEditInstruction, SIGNAL(triggered(bool)), this, connect(&actionEditInstruction, SIGNAL(triggered(bool)), this,
@ -240,6 +238,8 @@ void DisassemblyContextMenu::aboutToShowSlot()
// currently there are is no breakpoint support in ESIL so // currently there are is no breakpoint support in ESIL so
// we dont show the option in case we are emulating // we dont show the option in case we are emulating
actionAddBreakpoint.setVisible(!Core()->currentlyEmulating); actionAddBreakpoint.setVisible(!Core()->currentlyEmulating);
QString progCounterName = Core()->getRegisterName("PC");
actionSetPC.setText("Set " + progCounterName + " here");
} }