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

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) : ...@@ -62,6 +62,12 @@ EditorWindow::EditorWindow(QWidget *parent) :
updateWindowTitle(); updateWindowTitle();
} }
EditorWindow::~EditorWindow()
{
disconnect(m_area, &EditorArea::windowTitleNeedsUpdate,
this, &EditorWindow::updateWindowTitle);
}
EditorArea *EditorWindow::editorArea() const EditorArea *EditorWindow::editorArea() const
{ {
return m_area; return m_area;
......
...@@ -42,6 +42,7 @@ class EditorWindow : public QWidget ...@@ -42,6 +42,7 @@ class EditorWindow : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit EditorWindow(QWidget *parent = 0); explicit EditorWindow(QWidget *parent = 0);
~EditorWindow();
EditorArea *editorArea() const; 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