fix error
This commit is contained in:
parent
417ca74a80
commit
7efdb2e797
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue