Skip to content

Commit

Permalink
#5629 Save activation dialog seen state on reject
Browse files Browse the repository at this point in the history
  • Loading branch information
SymlessRemoved authored and Andrew Nelless committed Oct 4, 2016
1 parent b502eb3 commit 3b33083
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/src/ActivationDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ void ActivationDialog::reject()
CancelActivationDialog cancelActivationDialog(this);
if (QDialog::Accepted == cancelActivationDialog.exec()) {
notifyActivation("skip:unknown");
m_appConfig->activationHasRun(true);
m_appConfig->saveSettings();
QDialog::reject();
}
}
Expand Down Expand Up @@ -102,6 +104,9 @@ void ActivationDialog::accept()
QString error;
int edition = Unregistered;

m_appConfig->activationHasRun(true);
m_appConfig->saveSettings();

try {
if (ui->m_pRadioButtonActivate->isChecked()) {
WebClient webClient;
Expand Down Expand Up @@ -152,7 +157,6 @@ void ActivationDialog::accept()
}

m_appConfig->setEdition(edition);
m_appConfig->activationHasRun(true);
m_appConfig->saveSettings();

message.information (this, "Activated!",
Expand Down

0 comments on commit 3b33083

Please sign in to comment.