|
|
@ -378,6 +378,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) |
|
|
|
connect(m_ui->checkBypassLocalAuth, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkBypassLocalAuth, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, m_ui->IPSubnetWhitelistButton, &QPushButton::setEnabled); |
|
|
|
connect(m_ui->checkBypassAuthSubnetWhitelist, &QAbstractButton::toggled, m_ui->IPSubnetWhitelistButton, &QPushButton::setEnabled); |
|
|
|
|
|
|
|
connect(m_ui->checkClickjacking, &QCheckBox::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); |
|
|
|
connect(m_ui->domainNameTxt, &QLineEdit::textChanged, this, &ThisType::enableApplyButton); |
|
|
|
connect(m_ui->domainNameTxt, &QLineEdit::textChanged, this, &ThisType::enableApplyButton); |
|
|
@ -694,6 +695,8 @@ void OptionsDialog::saveOptions() |
|
|
|
pref->setWebUiPassword(webUiPassword()); |
|
|
|
pref->setWebUiPassword(webUiPassword()); |
|
|
|
pref->setWebUiLocalAuthEnabled(!m_ui->checkBypassLocalAuth->isChecked()); |
|
|
|
pref->setWebUiLocalAuthEnabled(!m_ui->checkBypassLocalAuth->isChecked()); |
|
|
|
pref->setWebUiAuthSubnetWhitelistEnabled(m_ui->checkBypassAuthSubnetWhitelist->isChecked()); |
|
|
|
pref->setWebUiAuthSubnetWhitelistEnabled(m_ui->checkBypassAuthSubnetWhitelist->isChecked()); |
|
|
|
|
|
|
|
// Security
|
|
|
|
|
|
|
|
pref->setWebUiClickjackingProtectionEnabled(m_ui->checkClickjacking->isChecked()); |
|
|
|
// DynDNS
|
|
|
|
// DynDNS
|
|
|
|
pref->setDynDNSEnabled(m_ui->checkDynDNS->isChecked()); |
|
|
|
pref->setDynDNSEnabled(m_ui->checkDynDNS->isChecked()); |
|
|
|
pref->setDynDNSService(m_ui->comboDNSService->currentIndex()); |
|
|
|
pref->setDynDNSService(m_ui->comboDNSService->currentIndex()); |
|
|
@ -1096,6 +1099,9 @@ void OptionsDialog::loadOptions() |
|
|
|
m_ui->checkBypassAuthSubnetWhitelist->setChecked(pref->isWebUiAuthSubnetWhitelistEnabled()); |
|
|
|
m_ui->checkBypassAuthSubnetWhitelist->setChecked(pref->isWebUiAuthSubnetWhitelistEnabled()); |
|
|
|
m_ui->IPSubnetWhitelistButton->setEnabled(m_ui->checkBypassAuthSubnetWhitelist->isChecked()); |
|
|
|
m_ui->IPSubnetWhitelistButton->setEnabled(m_ui->checkBypassAuthSubnetWhitelist->isChecked()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Security
|
|
|
|
|
|
|
|
m_ui->checkClickjacking->setChecked(pref->isWebUiClickjackingProtectionEnabled()); |
|
|
|
|
|
|
|
|
|
|
|
m_ui->checkDynDNS->setChecked(pref->isDynDNSEnabled()); |
|
|
|
m_ui->checkDynDNS->setChecked(pref->isDynDNSEnabled()); |
|
|
|
m_ui->comboDNSService->setCurrentIndex(static_cast<int>(pref->getDynDNSService())); |
|
|
|
m_ui->comboDNSService->setCurrentIndex(static_cast<int>(pref->getDynDNSService())); |
|
|
|
m_ui->domainNameTxt->setText(pref->getDynDomainName()); |
|
|
|
m_ui->domainNameTxt->setText(pref->getDynDomainName()); |
|
|
|