fix bug 103784
This commit is contained in:
parent
feabea9c31
commit
18a11bf491
|
@ -225,11 +225,13 @@ void SecurityPage::setTlsInfo(KyEapMethodTlsInfo &info)
|
||||||
identityEdit->setText(info.identity);
|
identityEdit->setText(info.identity);
|
||||||
domainEdit->setText(info.domain);
|
domainEdit->setText(info.domain);
|
||||||
if (info.caCertPath.isEmpty()) {
|
if (info.caCertPath.isEmpty()) {
|
||||||
caCertPathCombox->setItemText(0, "");
|
caCertPathCombox->setItemText(0, QString(tr("None")));
|
||||||
caNeedBox->setChecked(true);
|
caNeedBox->setChecked(false);
|
||||||
|
caCertPathCombox->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
caCertPathCombox->setItemText(0, info.caCertPath);
|
caCertPathCombox->setItemText(0, info.caCertPath);
|
||||||
caNeedBox->setChecked(false);
|
caNeedBox->setChecked(true);
|
||||||
|
caCertPathCombox->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.clientCertPath.isEmpty()) {
|
if (info.clientCertPath.isEmpty()) {
|
||||||
|
@ -722,6 +724,7 @@ void SecurityPage::onEapTypeComboxIndexChanged()
|
||||||
void SecurityPage::onCaNeedBoxClicked()
|
void SecurityPage::onCaNeedBoxClicked()
|
||||||
{
|
{
|
||||||
if (caNeedBox->isChecked()) {
|
if (caNeedBox->isChecked()) {
|
||||||
|
caCertPathCombox->setItemText(0, QString(tr("None")));
|
||||||
caCertPathCombox->setEnabled(false);
|
caCertPathCombox->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
caCertPathCombox->setEnabled(true);
|
caCertPathCombox->setEnabled(true);
|
||||||
|
|
Loading…
Reference in New Issue