Commit 8f2c4d39 authored by Volker Krause's avatar Volker Krause
Browse files

Add a few sanity checks for the product id

parent e04722ed
......@@ -368,6 +368,7 @@ Provider::~Provider()
void Provider::setProductIdentifier(const QString &productId)
{
Q_ASSERT(!productId.isEmpty());
d->productId = productId;
}
......@@ -485,6 +486,10 @@ void Provider::setSurveyCompleted(const SurveyInfo &info)
void Provider::submit()
{
if (d->productId.isEmpty()) {
qCWarning(Log) << "No productId specified!";
return;
}
if (!d->serverUrl.isValid()) {
qCWarning(Log) << "No feedback server URL specified!";
return;
......
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