From 9eec29927833aee4d5436912e94655a053610c83 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Thu, 12 Nov 2015 09:50:30 -0800 Subject: [PATCH] Check user type from serial key #4715 --- src/gui/src/SubscriptionManager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/src/SubscriptionManager.cpp b/src/gui/src/SubscriptionManager.cpp index a0c10916..0173248a 100644 --- a/src/gui/src/SubscriptionManager.cpp +++ b/src/gui/src/SubscriptionManager.cpp @@ -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; }