forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user