From 2d85e6c62e1d14c14c15b96eb8807843352a0fa1 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 30 Sep 2021 21:46:18 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 852b5c27e87..f7fe67d213d 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -3313,7 +3313,7 @@ void ProjectExplorerPluginPrivate::openRecentProject(const QString &fileName) { if (!fileName.isEmpty()) { ProjectExplorerPlugin::OpenProjectResult result - = ProjectExplorerPlugin::openProject(FilePath::fromString(fileName)); + = ProjectExplorerPlugin::openProject(FilePath::fromUserInput(fileName)); if (!result) ProjectExplorerPlugin::showOpenProjectError(result); }