forked from qt-creator/qt-creator
Designer: Fix exit crash.
Task-number: QTCREATORBUG-1798 Reviewed-by: Lasse Holmstedt <lasse.holmstedt@nokia.com>
This commit is contained in:
@@ -129,8 +129,8 @@ bool FormEditorStack::removeFormWindowEditor(Core::IEditor *xmlEditor)
|
|||||||
const int i = indexOf(xmlEditor);
|
const int i = indexOf(xmlEditor);
|
||||||
if (i == -1) // Fail silently as this is invoked for all editors.
|
if (i == -1) // Fail silently as this is invoked for all editors.
|
||||||
return false;
|
return false;
|
||||||
removeWidget(m_formEditors[i].widgetHost->widget());
|
removeWidget(m_formEditors[i].widgetHost);
|
||||||
delete m_formEditors[i].widgetHost;
|
m_formEditors[i].widgetHost->deleteLater();
|
||||||
m_formEditors.removeAt(i);
|
m_formEditors.removeAt(i);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user