Ref T213, Ref T271 opt-in for crash dumps

This commit is contained in:
Klaus Basan
2018-05-29 00:41:39 +02:00
parent c7f77c6892
commit efba4d99d3
3 changed files with 46 additions and 7 deletions

View File

@@ -22,6 +22,9 @@ namespace BlackGui
ui(new Ui::CLegalInfoComponent)
{
ui->setupUi(this);
const bool cd = m_crashDumpUploadEnabled.get();
ui->cb_CrashDumps->setChecked(cd);
connect(ui->cb_CrashDumps, &QCheckBox::toggled, this, &CLegalInfoComponent::onAllowCrashDumps);
}
CLegalInfoComponent::~CLegalInfoComponent()
@@ -40,6 +43,11 @@ namespace BlackGui
return false;
}
void CLegalInfoComponent::onAllowCrashDumps(bool checked)
{
m_crashDumpUploadEnabled.setAndSave(checked);
}
bool CLegalInfoWizardPage::validatePage()
{
return m_legalInfo && m_legalInfo->validateAgreement();