forked from qt-creator/qt-creator
Core: replace QString with Utils::FilePath to get documents
Change-Id: I01777c227398be8bd3bf877c5429b84a75aa361b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -246,7 +246,7 @@ QString StateListener::windowTitleVcsTopic(const QString &filePath)
|
||||
|
||||
static inline QString displayNameOfEditor(const QString &fileName)
|
||||
{
|
||||
IDocument *document = DocumentModel::documentForFilePath(fileName);
|
||||
IDocument *document = DocumentModel::documentForFilePath(FilePath::fromString(fileName));
|
||||
if (document)
|
||||
return document->displayName();
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user