#5707 Don't send update notifications for new users

This commit is contained in:
Andrew Nelless 2016-10-28 17:43:08 +01:00
parent 3e9815dfdd
commit 2f2dd7742f
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ LicenseManager::setSerialKey(QString serialKeyString, bool acceptExpired)
void
LicenseManager::notifyUpdate(QString fromVersion, QString toVersion) {
if ((fromVersion == "Unknown")
&& (m_serialKey == SerialKey(kUnregistered))) {
return;
}
ActivationNotifier* notifier = new ActivationNotifier();
notifier->setUpdateInfo (fromVersion, toVersion,
QString::fromStdString(m_serialKey.toString()));