Commit ae38de5c authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Designer: Fix exit crash.



Task-number: QTCREATORBUG-1798
Reviewed-by: default avatarLasse Holmstedt <lasse.holmstedt@nokia.com>
parent 4245b4ab
......@@ -129,8 +129,8 @@ bool FormEditorStack::removeFormWindowEditor(Core::IEditor *xmlEditor)
const int i = indexOf(xmlEditor);
if (i == -1) // Fail silently as this is invoked for all editors.
return false;
removeWidget(m_formEditors[i].widgetHost->widget());
delete m_formEditors[i].widgetHost;
removeWidget(m_formEditors[i].widgetHost);
m_formEditors[i].widgetHost->deleteLater();
m_formEditors.removeAt(i);
return true;
}
......
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