This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5629 Save activation dialog seen state on reject

  • Loading branch information...
nlyan committed Oct 4, 2016
1 parent 603b12d commit 16ef224ba8f185a0eb7d8ac28d6cdb2e6e72cae5
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/src/ActivationDialog.cpp
@@ -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();
}
}
@@ -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;
@@ -152,7 +157,6 @@ void ActivationDialog::accept()
}
m_appConfig->setEdition(edition);
- m_appConfig->activationHasRun(true);
m_appConfig->saveSettings();
message.information (this, "Activated!",

0 comments on commit 16ef224

Please sign in to comment.