forked from qt-creator/qt-creator
Core: Fix crash when closing separate window
Change-Id: I1c9c0644a7ed91b59e86137f80b1f0f534febd47 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Eike Ziller
parent
264df002e6
commit
f56dd2e49b
@@ -62,6 +62,12 @@ EditorWindow::EditorWindow(QWidget *parent) :
|
||||
updateWindowTitle();
|
||||
}
|
||||
|
||||
EditorWindow::~EditorWindow()
|
||||
{
|
||||
disconnect(m_area, &EditorArea::windowTitleNeedsUpdate,
|
||||
this, &EditorWindow::updateWindowTitle);
|
||||
}
|
||||
|
||||
EditorArea *EditorWindow::editorArea() const
|
||||
{
|
||||
return m_area;
|
||||
|
||||
@@ -42,6 +42,7 @@ class EditorWindow : public QWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit EditorWindow(QWidget *parent = 0);
|
||||
~EditorWindow();
|
||||
|
||||
EditorArea *editorArea() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user