diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index f1d9c7bf8c4c15d0ba03d044b958bcb547eef7d2..a9499aa8d0043f0074ba4b608dbefeb2fc8efe23 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1758,7 +1758,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, m_modeWindow = createModeWindow(Constants::MODE_DEBUG, m_mainWindow); m_mode->setWidget(m_modeWindow); - m_plugin->addAutoReleasedObject(new DebugModeContext(m_mainWindow)); + m_plugin->addAutoReleasedObject(new DebugModeContext(m_modeWindow)); m_plugin->addObject(m_mode);