summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-12-02 18:05:34 +0100
committerhjk <qtc-committer@nokia.com>2010-12-02 18:05:34 +0100
commit0497bdfc538b2cd9cc80f124e9d312b8eb0a7ed6 (patch)
treeeae5222ae753afe515b24268d7a97014083eb4e5 /src/plugins/debugger
parent9f5285283918441a07dbb8df48c23f91c54604fe (diff)
downloadqt-creator-0497bdfc538b2cd9cc80f124e9d312b8eb0a7ed6.tar.gz
debugger: the 'Memory Editor' action does not need to be stored explicitly
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/debuggermainwindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp
index 86ef337c8f..e70f143d83 100644
--- a/src/plugins/debugger/debuggermainwindow.cpp
+++ b/src/plugins/debugger/debuggermainwindow.cpp
@@ -150,7 +150,6 @@ public:
DebuggerLanguages m_previousDebugLanguages;
DebuggerLanguages m_activeDebugLanguages;
- QAction *m_openMemoryEditorAction;
ActionContainer *m_viewsMenu;
ActionContainer *m_debugMenu;
@@ -175,7 +174,6 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
, m_changingUI(false)
, m_previousDebugLanguages(AnyLanguage)
, m_activeDebugLanguages(AnyLanguage)
- , m_openMemoryEditorAction(0)
, m_viewsMenu(0)
, m_debugMenu(0)
, m_initialized(false)
@@ -324,14 +322,14 @@ void DebuggerMainWindowPrivate::createViewsMenuItems()
ActionManager *am = core->actionManager();
Context globalcontext(Core::Constants::C_GLOBAL);
- m_openMemoryEditorAction = new QAction(this);
- m_openMemoryEditorAction->setText(tr("Memory..."));
- connect(m_openMemoryEditorAction, SIGNAL(triggered()),
+ QAction *openMemoryEditorAction = new QAction(this);
+ openMemoryEditorAction->setText(tr("Memory..."));
+ connect(openMemoryEditorAction, SIGNAL(triggered()),
q, SIGNAL(memoryEditorRequested()));
// Add menu items
Command *cmd = 0;
- cmd = am->registerAction(m_openMemoryEditorAction,
+ cmd = am->registerAction(openMemoryEditorAction,
Core::Id("Debugger.Views.OpenMemoryEditor"),
Core::Context(Constants::C_DEBUGMODE));
m_viewsMenu->addAction(cmd);