ProjectExplorer: Workspace projects were missing from recent projects

When we checked for validity of recent projects, we used `isFile`, but
the path that is used for opening a workspace project is a directory.

Change-Id: Ie22c13c06c22d4584d1e198d5ab133025ea536c8
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Eike Ziller
2024-06-05 16:03:59 +02:00
parent b0e1ea7da7
commit 42eb44f622

View File

@@ -2185,7 +2185,7 @@ void ProjectExplorerPluginPrivate::checkRecentProjectsAsync()
m_recentProjectsFuture
= QtConcurrent::mapped(&m_recentProjectsPool, m_recentProjects, [](RecentProjectsEntry p) {
// check if project is available, but avoid querying devices
p.exists = p.filePath.needsDevice() || p.filePath.isFile();
p.exists = p.filePath.needsDevice() || p.filePath.exists();
return p;
});
Utils::futureSynchronizer()->addFuture(m_recentProjectsFuture);