1.13.6
This commit is contained in:
parent
2deb5ce7d2
commit
7bbaab9470
|
@ -487,6 +487,8 @@ CSettingsWindow::CSettingsWindow(QWidget* parent)
|
|||
|
||||
m_CertChanged = false;
|
||||
connect(ui.txtCertificate, SIGNAL(textChanged()), this, SLOT(CertChanged()));
|
||||
connect(ui.txtSerial, SIGNAL(textChanged(const QString&)), this, SLOT(KeyChanged()));
|
||||
ui.btnGetCert->setEnabled(false);
|
||||
connect(theGUI, SIGNAL(CertUpdated()), this, SLOT(UpdateCert()));
|
||||
|
||||
ui.txtCertificate->setPlaceholderText(
|
||||
|
@ -1293,13 +1295,20 @@ void CSettingsWindow::OnGetCert()
|
|||
QString Serial = ui.txtSerial->text();
|
||||
|
||||
QString Message;
|
||||
if (Serial.length() > 5 && Serial.at(4).toUpper() == 'U') {
|
||||
|
||||
if (Serial.length() < 4 || Serial.left(4).compare("SBIE", Qt::CaseInsensitive) != 0) {
|
||||
Message = tr("This does not look like a Sandboxie-Plus Serial Number.<br />"
|
||||
"If you have attempted to enter the UpdateKey or the Signature from a certificate, "
|
||||
"that is not correct, please enter the entire certificate into the text area above instead.");
|
||||
}
|
||||
|
||||
else if (Serial.length() > 5 && Serial.at(4).toUpper() == 'U') {
|
||||
Message = tr("You are attempting to use a feature Upgrade-Key without having entered a pre-existing supporter certificate. "
|
||||
"Please note that this type of key (<b>as it is clearly stated in bold on the website</b) requires you to have a pre-existing valid supporter certificate; it is useless without one."
|
||||
"<br />If you want to use the advanced features, you need to obtain both a standard certificate and the feature upgrade key to unlock advanced functionality.");
|
||||
}
|
||||
|
||||
if (Serial.length() > 5 && Serial.at(4).toUpper() == 'R') {
|
||||
else if (Serial.length() > 5 && Serial.at(4).toUpper() == 'R') {
|
||||
Message = tr("You are attempting to use a Renew-Key without having entered a pre-existing supporter certificate. "
|
||||
"Please note that this type of key (<b>as it is clearly stated in bold on the website</b) requires you to have a pre-existing valid supporter certificate; it is useless without one.");
|
||||
}
|
||||
|
@ -2481,6 +2490,11 @@ void CSettingsWindow::CertChanged()
|
|||
OnOptChanged();
|
||||
}
|
||||
|
||||
void CSettingsWindow::KeyChanged()
|
||||
{
|
||||
ui.btnGetCert->setEnabled(ui.txtSerial->text().length() > 5);
|
||||
}
|
||||
|
||||
void CSettingsWindow::LoadCertificate(QString CertPath)
|
||||
{
|
||||
if (theAPI && theAPI->IsConnected())
|
||||
|
|
|
@ -130,6 +130,7 @@ private slots:
|
|||
|
||||
|
||||
void CertChanged();
|
||||
void KeyChanged();
|
||||
void UpdateCert();
|
||||
void OnGetCert();
|
||||
void OnCertData(const QByteArray& Certificate, const QVariantMap& Params);
|
||||
|
|
Loading…
Reference in New Issue