#5629 Save activation dialog seen state on reject

This commit is contained in:
Andrew Nelless 2016-10-04 11:15:53 +01:00
parent 603b12dc59
commit 16ef224ba8
1 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,8 @@ void ActivationDialog::reject()
CancelActivationDialog cancelActivationDialog(this); CancelActivationDialog cancelActivationDialog(this);
if (QDialog::Accepted == cancelActivationDialog.exec()) { if (QDialog::Accepted == cancelActivationDialog.exec()) {
notifyActivation("skip:unknown"); notifyActivation("skip:unknown");
m_appConfig->activationHasRun(true);
m_appConfig->saveSettings();
QDialog::reject(); QDialog::reject();
} }
} }
@ -102,6 +104,9 @@ void ActivationDialog::accept()
QString error; QString error;
int edition = Unregistered; int edition = Unregistered;
m_appConfig->activationHasRun(true);
m_appConfig->saveSettings();
try { try {
if (ui->m_pRadioButtonActivate->isChecked()) { if (ui->m_pRadioButtonActivate->isChecked()) {
WebClient webClient; WebClient webClient;
@ -152,7 +157,6 @@ void ActivationDialog::accept()
} }
m_appConfig->setEdition(edition); m_appConfig->setEdition(edition);
m_appConfig->activationHasRun(true);
m_appConfig->saveSettings(); m_appConfig->saveSettings();
message.information (this, "Activated!", message.information (this, "Activated!",