forked from qt-creator/qt-creator
Session Manager: Set corrrect window title after unloading last project
Task-Nr: QTCREATORBUG-3337
This commit is contained in:
@@ -841,6 +841,8 @@ void SessionManager::updateWindowTitle()
|
|||||||
if (isDefaultSession(m_sessionName)) {
|
if (isDefaultSession(m_sessionName)) {
|
||||||
if (Project *currentProject = ProjectExplorerPlugin::instance()->currentProject())
|
if (Project *currentProject = ProjectExplorerPlugin::instance()->currentProject())
|
||||||
m_core->editorManager()->setWindowTitleAddition(currentProject->displayName());
|
m_core->editorManager()->setWindowTitleAddition(currentProject->displayName());
|
||||||
|
else
|
||||||
|
m_core->editorManager()->setWindowTitleAddition("");
|
||||||
} else {
|
} else {
|
||||||
QString sessionName = m_sessionName;
|
QString sessionName = m_sessionName;
|
||||||
if (sessionName.isEmpty())
|
if (sessionName.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user