diff --git a/src/plugins/coreplugin/editormanager/editorwindow.cpp b/src/plugins/coreplugin/editormanager/editorwindow.cpp index c6036de2b03..79feec7538e 100644 --- a/src/plugins/coreplugin/editormanager/editorwindow.cpp +++ b/src/plugins/coreplugin/editormanager/editorwindow.cpp @@ -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; diff --git a/src/plugins/coreplugin/editormanager/editorwindow.h b/src/plugins/coreplugin/editormanager/editorwindow.h index eecb7586a6e..084e3771961 100644 --- a/src/plugins/coreplugin/editormanager/editorwindow.h +++ b/src/plugins/coreplugin/editormanager/editorwindow.h @@ -42,6 +42,7 @@ class EditorWindow : public QWidget Q_OBJECT public: explicit EditorWindow(QWidget *parent = 0); + ~EditorWindow(); EditorArea *editorArea() const;