forked from qt-creator/qt-creator
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:
committed by
Alessandro Portale
parent
cd06f69cc9
commit
e7a0c380d7
@@ -637,7 +637,7 @@ QString SessionManagerPrivate::locationInProject(const QString &filePath) {
|
|||||||
|
|
||||||
QString SessionManagerPrivate::windowTitleAddition(const QString &filePath)
|
QString SessionManagerPrivate::windowTitleAddition(const QString &filePath)
|
||||||
{
|
{
|
||||||
return locationInProject(filePath);
|
return filePath.isEmpty() ? QString() : locationInProject(filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList SessionManagerPrivate::dependenciesOrder() const
|
QStringList SessionManagerPrivate::dependenciesOrder() const
|
||||||
|
Reference in New Issue
Block a user