Commit 6a9b6def authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Fix exit crash in Debug-Mode.

Acked-By: hjk
parent 688f5d59
......@@ -74,8 +74,11 @@ OutputPanePlaceHolder::OutputPanePlaceHolder(Core::IMode *mode, QSplitter* paren
OutputPanePlaceHolder::~OutputPanePlaceHolder()
{
if (d->m_current == this) {
Internal::OutputPaneManager::instance()->setParent(0);
Internal::OutputPaneManager::instance()->hide();
// FIXME: Prevent exit crash in debug mode.
if (Internal::OutputPaneManager *om = Internal::OutputPaneManager::instance()) {
om->setParent(0);
om->hide();
}
}
}
......
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