Commit 0497bdfc authored by hjk's avatar hjk
Browse files

debugger: the 'Memory Editor' action does not need to be stored explicitly

parent 9f528528
...@@ -150,7 +150,6 @@ public: ...@@ -150,7 +150,6 @@ public:
DebuggerLanguages m_previousDebugLanguages; DebuggerLanguages m_previousDebugLanguages;
DebuggerLanguages m_activeDebugLanguages; DebuggerLanguages m_activeDebugLanguages;
QAction *m_openMemoryEditorAction;
ActionContainer *m_viewsMenu; ActionContainer *m_viewsMenu;
ActionContainer *m_debugMenu; ActionContainer *m_debugMenu;
...@@ -175,7 +174,6 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw) ...@@ -175,7 +174,6 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
, m_changingUI(false) , m_changingUI(false)
, m_previousDebugLanguages(AnyLanguage) , m_previousDebugLanguages(AnyLanguage)
, m_activeDebugLanguages(AnyLanguage) , m_activeDebugLanguages(AnyLanguage)
, m_openMemoryEditorAction(0)
, m_viewsMenu(0) , m_viewsMenu(0)
, m_debugMenu(0) , m_debugMenu(0)
, m_initialized(false) , m_initialized(false)
...@@ -324,14 +322,14 @@ void DebuggerMainWindowPrivate::createViewsMenuItems() ...@@ -324,14 +322,14 @@ void DebuggerMainWindowPrivate::createViewsMenuItems()
ActionManager *am = core->actionManager(); ActionManager *am = core->actionManager();
Context globalcontext(Core::Constants::C_GLOBAL); Context globalcontext(Core::Constants::C_GLOBAL);
m_openMemoryEditorAction = new QAction(this); QAction *openMemoryEditorAction = new QAction(this);
m_openMemoryEditorAction->setText(tr("Memory...")); openMemoryEditorAction->setText(tr("Memory..."));
connect(m_openMemoryEditorAction, SIGNAL(triggered()), connect(openMemoryEditorAction, SIGNAL(triggered()),
q, SIGNAL(memoryEditorRequested())); q, SIGNAL(memoryEditorRequested()));
// Add menu items // Add menu items
Command *cmd = 0; Command *cmd = 0;
cmd = am->registerAction(m_openMemoryEditorAction, cmd = am->registerAction(openMemoryEditorAction,
Core::Id("Debugger.Views.OpenMemoryEditor"), Core::Id("Debugger.Views.OpenMemoryEditor"),
Core::Context(Constants::C_DEBUGMODE)); Core::Context(Constants::C_DEBUGMODE));
m_viewsMenu->addAction(cmd); m_viewsMenu->addAction(cmd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment