logic: Test License

Test license for x days
License_generator flag -e <days>
This commit is contained in:
Andreas Stallinger
2016-03-29 15:37:58 +02:00
parent ac506622b4
commit a662424e2b
30 changed files with 695 additions and 247 deletions
+6 -1
View File
@@ -151,7 +151,12 @@ void QtLicense::handleNext()
license.loadPublicKeyFromString(PublicKey);
license.print();
if (license.isValid())
if (license.isExpired())
{
m_errorLabel->setText("The entered license key is expired");
return;
}
else if (license.isValid())
{
ApplicationSettings* appSettings = ApplicationSettings::getInstance().get();
std::string appLocation = AppPath::getAppPath();