From d652241ec209f4ddb458b41023354df53e8dfb9c Mon Sep 17 00:00:00 2001
From: mandlebro <fcasal@users.noreply.github.com>
Date: Tue, 24 Jul 2018 00:13:46 +0100
Subject: [PATCH]  * Fix naming of program counter in contextmenu

---
 src/menus/DisassemblyContextMenu.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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