forked from qt-creator/qt-creator
Designer: Fix crash on close
...when executing plugin unit tests for Designer. Change-Id: Ic3252bfef4559de4e54f5c3c3fd1984ab6a00f9d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -53,6 +53,16 @@ FormEditorStack::FormEditorStack(QWidget *parent) :
|
||||
setObjectName("FormEditorStack");
|
||||
}
|
||||
|
||||
FormEditorStack::~FormEditorStack()
|
||||
{
|
||||
if (m_designerCore) {
|
||||
if (auto fwm = m_designerCore->formWindowManager()) {
|
||||
disconnect(fwm, &QDesignerFormWindowManagerInterface::activeFormWindowChanged,
|
||||
this, &FormEditorStack::updateFormWindowSelectionHandles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FormEditorStack::add(const EditorData &data)
|
||||
{
|
||||
if (m_designerCore == 0) { // Initialize first time here
|
||||
|
@@ -53,6 +53,7 @@ class FormEditorStack : public QStackedWidget
|
||||
|
||||
public:
|
||||
explicit FormEditorStack(QWidget *parent = nullptr);
|
||||
~FormEditorStack() override;
|
||||
|
||||
void add(const EditorData &d);
|
||||
|
||||
|
Reference in New Issue
Block a user