From e69144d1da6f22e7d90553bbd57a3140c3019a31 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 30 Jun 2016 07:51:52 +0200 Subject: [PATCH] Core: Assign an explicit parent for main editor area This avoids failing updates of the main window (e.g. windowTitle) before the main editor area is displayed first time. Change-Id: I5c559f9487872e47b1fd914f0aec16b0b2f1dec3 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/editormanager/editormanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 7bc36393c21..bac887e510f 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -442,6 +442,8 @@ void EditorManagerPrivate::init() // other setup auto mainEditorArea = new EditorArea(); + // assign parent to avoid failing updates (e.g. windowTitle) before it is displayed first time + mainEditorArea->setParent(ICore::mainWindow()); mainEditorArea->hide(); connect(mainEditorArea, &EditorArea::windowTitleNeedsUpdate, this, &EditorManagerPrivate::updateWindowTitle);