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