OSDN Git Service

Session Manager: Set corrrect window title after unloading last project
authordt <qtc-committer@nokia.com>
Thu, 9 Dec 2010 18:53:49 +0000 (19:53 +0100)
committerdt <qtc-committer@nokia.com>
Thu, 9 Dec 2010 18:53:49 +0000 (19:53 +0100)
Task-Nr: QTCREATORBUG-3337

src/plugins/projectexplorer/session.cpp

index 1082c7e..5975c38 100644 (file)
@@ -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())