From cc75d11a626881c09e0eb05b721c0b73f759edf5 Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Thu, 9 Dec 2010 19:53:49 +0100
Subject: [PATCH] Session Manager: Set corrrect window title after unloading
 last project

Task-Nr: QTCREATORBUG-3337
---
 src/plugins/projectexplorer/session.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp
index 1082c7ea38d..5975c384081 100644
--- a/src/plugins/projectexplorer/session.cpp
+++ b/src/plugins/projectexplorer/session.cpp
@@ -841,6 +841,8 @@ void SessionManager::updateWindowTitle()
     if (isDefaultSession(m_sessionName)) {
         if (Project *currentProject = ProjectExplorerPlugin::instance()->currentProject())
             m_core->editorManager()->setWindowTitleAddition(currentProject->displayName());
+        else
+            m_core->editorManager()->setWindowTitleAddition("");
     } else {
         QString sessionName = m_sessionName;
         if (sessionName.isEmpty())
-- 
GitLab