Commit e69144d1 authored by Christian Stenger's avatar Christian Stenger

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's avatarEike Ziller <>
parent bb424cd8
...@@ -442,6 +442,8 @@ void EditorManagerPrivate::init() ...@@ -442,6 +442,8 @@ void EditorManagerPrivate::init()
// other setup // other setup
auto mainEditorArea = new EditorArea(); auto mainEditorArea = new EditorArea();
// assign parent to avoid failing updates (e.g. windowTitle) before it is displayed first time
mainEditorArea->hide(); mainEditorArea->hide();
connect(mainEditorArea, &EditorArea::windowTitleNeedsUpdate, connect(mainEditorArea, &EditorArea::windowTitleNeedsUpdate,
this, &EditorManagerPrivate::updateWindowTitle); this, &EditorManagerPrivate::updateWindowTitle);
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