fix error

This commit is contained in:
jzxc95 2021-10-19 10:47:06 +08:00
parent 417ca74a80
commit 7efdb2e797
5 changed files with 5 additions and 4 deletions

View File

@ -476,7 +476,7 @@ void KyWirelessConnectOperation::addAndActiveWirelessConnect(QString & devIface,
break;
case NetworkManager::WpaPsk:
case NetworkManager::Wpa2Psk:
settings = assembleWpaXPskSettings(access_point, connSettingInfo.m_psk, connSettingInfo.isAutoConnect;
settings = assembleWpaXPskSettings(access_point, connSettingInfo.m_psk, connSettingInfo.isAutoConnect);
if (nullptr != settings) {
map_settings = settings->toMap();
} else {
@ -486,7 +486,7 @@ void KyWirelessConnectOperation::addAndActiveWirelessConnect(QString & devIface,
break;
//TODO: other types...
case NetworkManager::SAE:
settings = assembleSaeSettings(access_point, connSettingInfo.m_psk, connSettingInfo.isAutoConnect;
settings = assembleSaeSettings(access_point, connSettingInfo.m_psk, connSettingInfo.isAutoConnect);
if (nullptr != settings) {
map_settings = settings->toMap();
} else {

View File

@ -161,6 +161,7 @@ void DetailPage::initUI() {
QSpacerItem *horizontalSpacer;
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
mAutoLayout->addSpacing(20);
mAutoLayout->addWidget(forgetNetBox);
mAutoLayout->addWidget(autoConnect);
mAutoLayout->addSpacerItem(horizontalSpacer);

View File

@ -170,7 +170,7 @@ bool Ipv4Page::checkConnectBtnIsEnabled()
return false;
}
if (netMaskEdit->text().isEmpty() || !getNetMaskState(netMaskEdit->text())) {
if (netMaskEdit->text().isEmpty() || !netMaskIsValide(netMaskEdit->text())) {
qDebug() << "ipv4 netMask empty or invalid";
return false;
}

View File

@ -832,6 +832,7 @@ bool NetDetail::updateConnect()
bool securityChange = false;
if (isWlan) {
securityChange = securityPage->checkIsChanged(m_info);
qDebug() << "securityChange" << securityChange;
if (securityChange) {
KySecuType secuType;
KyEapMethodType enterpriseType;

View File

@ -338,7 +338,6 @@ void SecurityPage::getSecuType(KySecuType &secuType, KyEapMethodType &enterprise
bool SecurityPage::checkIsChanged(const ConInfo info)
{
qDebug() << "SecurityPage checkIsChanged";
if (info.secType != secuTypeCombox->currentData().toInt()) {
return true;
} else {