Check user type from serial key #4715

This commit is contained in:
Jerry (Xinyu Hou) 2015-11-12 09:50:30 -08:00
parent 4c1b6f3f23
commit 9eec299278
1 changed files with 7 additions and 1 deletions

View File

@ -88,9 +88,15 @@ bool SubscriptionManager::checkSubscriptionExist()
int SubscriptionManager::getEditionType(QString& string)
{
if (string.contains("full subscription valid")) {
if (string.contains("pro subscription valid")) {
return Pro;
}
else if (string.contains("basic subscription valid")) {
return Basic;
}
else if (string.contains("trial subscription valid")) {
return Trial;
}
return Unknown;
}