summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-12-12 15:48:59 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-12-12 14:53:14 +0000
commitf3a5a38de8ffdde2ea66894eae4739ae86a94f99 (patch)
treefe4b48af9b5023b9b4e3eafc5ce6f04f8e5cb7d9
parent7383a311d745cd335d8223b644ab1b03ca09ebc5 (diff)
downloadqt-creator-f3a5a38de8ffdde2ea66894eae4739ae86a94f99.tar.gz
StudoPlugin: Add QTC_ASSERT to avoid empty project names
There have been issues with invalid properties in the telemetry backend. Change-Id: I8ddd7740e927e83b363a8d5a87a24836ca573c73 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index f8a9b5c331..9cbe85e19f 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -241,6 +241,7 @@ public:
const QString &formFile,
const QString &explicitQmlproject)
{
+ QTC_ASSERT(!exampleName.isEmpty(), return );
QmlDesigner::QmlDesignerPlugin::emitUsageStatistics("exampleOpened:"
+ exampleName);