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>
This commit is contained in:
Thomas Hartmann
2022-12-12 15:48:59 +01:00
parent 7383a311d7
commit f3a5a38de8

View File

@@ -241,6 +241,7 @@ public:
const QString &formFile,
const QString &explicitQmlproject)
{
QTC_ASSERT(!exampleName.isEmpty(), return );
QmlDesigner::QmlDesignerPlugin::emitUsageStatistics("exampleOpened:"
+ exampleName);