|
|
@ -410,6 +410,8 @@ OptionsDialog::OptionsDialog(QWidget *parent) |
|
|
|
connect(m_ui->spinSessionTimeout, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->spinSessionTimeout, qSpinBoxValueChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkClickjacking, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkClickjacking, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkCSRFProtection, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkCSRFProtection, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
|
|
|
connect(m_ui->checkWebUiHttps, &QGroupBox::toggled, m_ui->checkSecureCookie, &QWidget::setEnabled); |
|
|
|
|
|
|
|
connect(m_ui->checkSecureCookie, &QCheckBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->groupHostHeaderValidation, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->groupHostHeaderValidation, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkDynDNS, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkDynDNS, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->comboDNSService, qComboBoxCurrentIndexChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->comboDNSService, qComboBoxCurrentIndexChanged, this, &ThisType::enableApplyButton); |
|
|
@ -797,6 +799,7 @@ void OptionsDialog::saveOptions() |
|
|
|
// Security
|
|
|
|
// Security
|
|
|
|
pref->setWebUiClickjackingProtectionEnabled(m_ui->checkClickjacking->isChecked()); |
|
|
|
pref->setWebUiClickjackingProtectionEnabled(m_ui->checkClickjacking->isChecked()); |
|
|
|
pref->setWebUiCSRFProtectionEnabled(m_ui->checkCSRFProtection->isChecked()); |
|
|
|
pref->setWebUiCSRFProtectionEnabled(m_ui->checkCSRFProtection->isChecked()); |
|
|
|
|
|
|
|
pref->setWebUiSecureCookieEnabled(m_ui->checkSecureCookie->isChecked()); |
|
|
|
pref->setWebUIHostHeaderValidationEnabled(m_ui->groupHostHeaderValidation->isChecked()); |
|
|
|
pref->setWebUIHostHeaderValidationEnabled(m_ui->groupHostHeaderValidation->isChecked()); |
|
|
|
// DynDNS
|
|
|
|
// DynDNS
|
|
|
|
pref->setDynDNSEnabled(m_ui->checkDynDNS->isChecked()); |
|
|
|
pref->setDynDNSEnabled(m_ui->checkDynDNS->isChecked()); |
|
|
@ -1174,6 +1177,8 @@ void OptionsDialog::loadOptions() |
|
|
|
// Security
|
|
|
|
// Security
|
|
|
|
m_ui->checkClickjacking->setChecked(pref->isWebUiClickjackingProtectionEnabled()); |
|
|
|
m_ui->checkClickjacking->setChecked(pref->isWebUiClickjackingProtectionEnabled()); |
|
|
|
m_ui->checkCSRFProtection->setChecked(pref->isWebUiCSRFProtectionEnabled()); |
|
|
|
m_ui->checkCSRFProtection->setChecked(pref->isWebUiCSRFProtectionEnabled()); |
|
|
|
|
|
|
|
m_ui->checkSecureCookie->setEnabled(pref->isWebUiHttpsEnabled()); |
|
|
|
|
|
|
|
m_ui->checkSecureCookie->setChecked(pref->isWebUiSecureCookieEnabled()); |
|
|
|
m_ui->groupHostHeaderValidation->setChecked(pref->isWebUIHostHeaderValidationEnabled()); |
|
|
|
m_ui->groupHostHeaderValidation->setChecked(pref->isWebUIHostHeaderValidationEnabled()); |
|
|
|
|
|
|
|
|
|
|
|
m_ui->checkDynDNS->setChecked(pref->isDynDNSEnabled()); |
|
|
|
m_ui->checkDynDNS->setChecked(pref->isDynDNSEnabled()); |
|
|
|