ProjectExplorer: Cleanup Window title for the case of no loaded document

When no document is loaded, don't prepend a windowTitleAddition to the
IDE window title.

Fixes: QTCREATORBUG-27328
Change-Id: I283debc2588c6552eaeb9ea23d7df0d07580f9af
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alesandro Portale
2022-04-05 15:37:57 +02:00
committed by Alessandro Portale
parent cd06f69cc9
commit e7a0c380d7

View File

@@ -637,7 +637,7 @@ QString SessionManagerPrivate::locationInProject(const QString &filePath) {
QString SessionManagerPrivate::windowTitleAddition(const QString &filePath)
{
return locationInProject(filePath);
return filePath.isEmpty() ? QString() : locationInProject(filePath);
}
QStringList SessionManagerPrivate::dependenciesOrder() const