Commit 2cb613ec authored by Volker Krause's avatar Volker Krause
Browse files

Generate valid product ids when no domain is set too

parent 8f2c4d39
......@@ -70,7 +70,10 @@ ProviderPrivate::ProviderPrivate(Provider *qq)
{
auto domain = QCoreApplication::organizationDomain().split(QLatin1Char('.'));
std::reverse(domain.begin(), domain.end());
productId = domain.join(QLatin1String(".")) + QLatin1Char('.') + QCoreApplication::applicationName();
productId = domain.join(QLatin1String("."));
if (!productId.isEmpty())
productId += QLatin1Char('.');
productId += QCoreApplication::applicationName();
submissionTimer.setSingleShot(true);
QObject::connect(&submissionTimer, SIGNAL(timeout()), q, SLOT(submit()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment