Commit 9943ec7d authored by kh's avatar kh
Browse files

Fix crash on shutdown.

The onModeChanged gets always called, even after shutdown where we
already had deleted the DebuggerManager. Don't access the 0 pointer.
parent eb6c6a51
......@@ -1150,11 +1150,17 @@ void DebuggerPlugin::readSettings()
void DebuggerPlugin::onModeChanged(IMode *mode)
// FIXME: This one gets always called, even if switching between modes
// different then the debugger mode. E.g. Welcome and Help mode and
// also on shutdown.
if (mode != m_debugMode) {
if (m_manager)
if (m_manager)
EditorManager *editorManager = EditorManager::instance();
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