From 11fc62e9b1ada818eba038794de5bbeebcdc158d Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 12 Oct 2021 15:59:29 +0200 Subject: [PATCH] EditorManager: Avoid one use of FilePath::toFileInfo() Change-Id: Id6312657298d29eab2f487213d296c0d5ffe2f9a Reviewed-by: David Schulz --- src/plugins/coreplugin/editormanager/editormanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index c2b432d05a2..7944c882853 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -2110,7 +2110,7 @@ void EditorManagerPrivate::updateWindowTitleForDocument(IDocument *document, QWi if (!documentName.isEmpty()) windowTitle.append(documentName); - const QString filePath = document ? document->filePath().toFileInfo().absoluteFilePath() + const QString filePath = document ? document->filePath().absoluteFilePath().path() : QString(); const QString windowTitleAddition = d->m_titleAdditionHandler ? d->m_titleAdditionHandler(filePath)