From ee281240eba92d8d7e810a3b1565e488369fd204 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 26 Mar 2021 15:26:03 +0100 Subject: [PATCH] StudioWelcome: Fix crash Check if a project does actually exist. Task-number: QDS-3309 Change-Id: I59beff2637bbe80175dd223d6f574ea3886d95c5 Reviewed-by: Aleksei German Reviewed-by: Thomas Hartmann --- src/plugins/studiowelcome/studiowelcomeplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index a2ac354fa01..35889ce5222 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)