summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectexplorer.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-02-23 09:58:17 +0100
committerEike Ziller <eike.ziller@qt.io>2023-02-23 10:38:30 +0000
commit08ace8288a66fce30e6bd02a0f2ea9f21713fcad (patch)
treeb027666fdd8709f243db2aaceb8a8c98fc08ac16 /src/plugins/projectexplorer/projectexplorer.cpp
parenta8e424f75e7644faf86379749c1f9551cbbfc648 (diff)
downloadqt-creator-08ace8288a66fce30e6bd02a0f2ea9f21713fcad.tar.gz
Avoid triggering device login from recent project list
We filter the list of recent projects for existing files, but for remote projects that triggers a login request directly at startup. Just don't check projects on devices. Change-Id: I786745a7bee9c8984b926886bcae9fe825f7649a Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.cpp')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index d2fee3f2bd..f76f10175b 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -2725,7 +2725,8 @@ void ProjectExplorerPluginPrivate::buildQueueFinished(bool success)
RecentProjectsEntries ProjectExplorerPluginPrivate::recentProjects() const
{
return Utils::filtered(dd->m_recentProjects, [](const RecentProjectsEntry &p) {
- return p.first.isFile();
+ // check if project is available, but avoid querying devices
+ return p.first.needsDevice() || p.first.isFile();
});
}