Core: Use FilePath in IDocumentFactory::open()

Change-Id: I369f3bba2e0d1d33fed3a29f3c1408429cc7d8f8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-23 11:15:18 +02:00
parent 124909c802
commit 64c9384cb8
5 changed files with 17 additions and 12 deletions

View File

@@ -892,7 +892,7 @@ IDocument *MainWindow::openFiles(const FilePaths &filePaths,
const QFileInfo fi(workingDir, fileName);
const QString absoluteFilePath = fi.absoluteFilePath();
if (IDocumentFactory *documentFactory = findDocumentFactory(documentFactories, filePath)) {
IDocument *document = documentFactory->open(absoluteFilePath);
IDocument *document = documentFactory->open(FilePath::fromString(absoluteFilePath));
if (!document) {
if (flags & ICore::StopOnLoadFail)
return res;