aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2021-03-26 15:26:03 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2021-03-26 17:14:56 +0000
commitee281240eba92d8d7e810a3b1565e488369fd204 (patch)
tree3cf5aed1d69f116de34e6d6041ea5471bea17614
parent981e3e734fb1e9a7eb5e7db526cee07c1ce61511 (diff)
StudioWelcome: Fix crash
Check if a project does actually exist. Task-number: QDS-3309 Change-Id: I59beff2637bbe80175dd223d6f574ea3886d95c5 Reviewed-by: Aleksei German <aleksei.german@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index a2ac354fa0..35889ce522 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -163,7 +163,8 @@ public:
{
const QString projectFile = data(index(row, 0),
ProjectModel::FilePathRole).toString();
- ProjectExplorer::ProjectExplorerPlugin::openProjectWelcomePage(projectFile);
+ if (QFileInfo::exists(projectFile))
+ ProjectExplorer::ProjectExplorerPlugin::openProjectWelcomePage(projectFile);
}
Q_INVOKABLE int get(int)