Check user type from serial key #4715
This commit is contained in:
parent
4c1b6f3f23
commit
9eec299278
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue