Commit f56dd2e4 authored by Christian Stenger's avatar Christian Stenger Committed by Eike Ziller

Core: Fix crash when closing separate window

Change-Id: I1c9c0644a7ed91b59e86137f80b1f0f534febd47
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 264df002
......@@ -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;
......
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