Core: Fix crash when closing separate window

Change-Id: I1c9c0644a7ed91b59e86137f80b1f0f534febd47
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Christian Stenger
2014-08-15 14:10:55 +02:00
committed by Eike Ziller
parent 264df002e6
commit f56dd2e49b
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -42,6 +42,7 @@ class EditorWindow : public QWidget
Q_OBJECT
public:
explicit EditorWindow(QWidget *parent = 0);
~EditorWindow();
EditorArea *editorArea() const;