From 4280e937377a4b49bbd95f6b594b28b3fc372fbb Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 13 Sep 2017 22:13:45 +0300 Subject: [PATCH] Refresh window title on app activation Task-number: QTCREATORBUG-18485 Change-Id: I5598dd628a76213fc4b9e49a002818b2fa3663cd Reviewed-by: Eike Ziller --- src/plugins/coreplugin/editormanager/editormanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 1b62ad7543c..e6a56ab9b6e 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -250,6 +250,11 @@ void EditorManagerPrivate::init() DocumentModel::init(); connect(ICore::instance(), &ICore::contextAboutToChange, this, &EditorManagerPrivate::handleContextChange); + connect(qApp, &QApplication::applicationStateChanged, + this, [](Qt::ApplicationState state) { + if (state == Qt::ApplicationActive) + EditorManager::updateWindowTitles(); + }); const Context editManagerContext(Constants::C_EDITORMANAGER); // combined context for edit & design modes