Added a check for emptiness of telemetry event data
This commit is contained in:
parent
37660ea244
commit
6fb49c0d5c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ TelemetryService::TelemetryService()
|
|||
|
||||
void TelemetryService::sendEvent(const QString &category, const QString &action, const QString &label, const QVariant &value, const QVariantMap &customValues)
|
||||
{
|
||||
if (!isTelemetryAllowed())
|
||||
if (!isTelemetryAllowed() || category.isEmpty() || action.isEmpty())
|
||||
return;
|
||||
|
||||
GAnalytics::instance()->sendEvent(category, action, label, value, customValues);
|
||||
|
|
Loading…
Reference in a new issue