ProjectExplorer: One more usage of fromUserInfo

The recent projects are handled as QString, and hit FilePath in
ProjectExplorerPluginPrivate::openRecentProject(), the first time.

This quick fix is using fromUserInfo. A proper solution will be to
change the API and data structures around recent projects to use
FileApi.

Change-Id: I668cd11020833659e9b7af9e1f8314fb1f404293
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2021-09-30 21:46:18 +02:00
parent 9def0165ac
commit 2d85e6c62e

View File

@@ -3313,7 +3313,7 @@ void ProjectExplorerPluginPrivate::openRecentProject(const QString &fileName)
{ {
if (!fileName.isEmpty()) { if (!fileName.isEmpty()) {
ProjectExplorerPlugin::OpenProjectResult result ProjectExplorerPlugin::OpenProjectResult result
= ProjectExplorerPlugin::openProject(FilePath::fromString(fileName)); = ProjectExplorerPlugin::openProject(FilePath::fromUserInput(fileName));
if (!result) if (!result)
ProjectExplorerPlugin::showOpenProjectError(result); ProjectExplorerPlugin::showOpenProjectError(result);
} }