Session Manager: Set corrrect window title after unloading last project

Task-Nr: QTCREATORBUG-3337
This commit is contained in:
dt
2010-12-09 19:53:49 +01:00
parent 7baf7b24e0
commit cc75d11a62

View 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())