From 18a11bf49197dd0aa67b27de8085755c604dba9b Mon Sep 17 00:00:00 2001 From: jzxc95 <907297917@qq.com> Date: Wed, 19 Jan 2022 15:24:20 +0800 Subject: [PATCH] fix bug 103784 --- src/frontend/netdetails/securitypage.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/frontend/netdetails/securitypage.cpp b/src/frontend/netdetails/securitypage.cpp index add0ef94..7f630a69 100644 --- a/src/frontend/netdetails/securitypage.cpp +++ b/src/frontend/netdetails/securitypage.cpp @@ -225,11 +225,13 @@ void SecurityPage::setTlsInfo(KyEapMethodTlsInfo &info) identityEdit->setText(info.identity); domainEdit->setText(info.domain); if (info.caCertPath.isEmpty()) { - caCertPathCombox->setItemText(0, ""); - caNeedBox->setChecked(true); + caCertPathCombox->setItemText(0, QString(tr("None"))); + caNeedBox->setChecked(false); + caCertPathCombox->setEnabled(false); } else { caCertPathCombox->setItemText(0, info.caCertPath); - caNeedBox->setChecked(false); + caNeedBox->setChecked(true); + caCertPathCombox->setEnabled(true); } if (info.clientCertPath.isEmpty()) { @@ -722,6 +724,7 @@ void SecurityPage::onEapTypeComboxIndexChanged() void SecurityPage::onCaNeedBoxClicked() { if (caNeedBox->isChecked()) { + caCertPathCombox->setItemText(0, QString(tr("None"))); caCertPathCombox->setEnabled(false); } else { caCertPathCombox->setEnabled(true);