Fixbug 133311
This commit is contained in:
parent
b37de39bf2
commit
f0b951022b
|
@ -381,6 +381,19 @@ void LanPage::constructActiveConnectionArea()
|
|||
QListWidgetItem *p_listWidgetItem = addNewItem(p_activeConnectionItem, m_activatedLanListWidget);
|
||||
m_activeConnectionMap.insert(p_activeConnectionItem->m_connectUuid, p_listWidgetItem);
|
||||
|
||||
int configType = NetworkModeConfig::getInstance()->getNetworkModeConfig(p_activeConnectionItem->m_connectUuid);
|
||||
if (configType == -1) {
|
||||
NetworkModeConfig::getInstance()->setNetworkModeConfig(p_activeConnectionItem->m_connectUuid,
|
||||
m_currentDeviceName,
|
||||
p_activeConnectionItem->m_connectName,
|
||||
KSC_FIREWALL_PUBLIC);
|
||||
} else {
|
||||
NetworkModeConfig::getInstance()->setNetworkModeConfig(p_activeConnectionItem->m_connectUuid,
|
||||
m_currentDeviceName,
|
||||
p_activeConnectionItem->m_connectName,
|
||||
configType);
|
||||
}
|
||||
|
||||
delete p_activeConnectionItem;
|
||||
p_activeConnectionItem = nullptr;
|
||||
}
|
||||
|
|
|
@ -425,6 +425,19 @@ void WlanPage::constructActivateConnectionArea()
|
|||
m_activateConnectionItemMap.insert(wirelessNetItem.m_NetSsid, p_listWidgetItem);
|
||||
updateWlanItemState(m_activatedNetListWidget, p_listWidgetItem, Activated);
|
||||
|
||||
int configType = NetworkModeConfig::getInstance()->getNetworkModeConfig(wirelessNetItem.m_connectUuid);
|
||||
if (configType == -1) {
|
||||
NetworkModeConfig::getInstance()->setNetworkModeConfig(wirelessNetItem.m_connectUuid,
|
||||
m_currentDevice,
|
||||
wirelessNetItem.m_connName,
|
||||
KSC_FIREWALL_PUBLIC);
|
||||
} else {
|
||||
NetworkModeConfig::getInstance()->setNetworkModeConfig(wirelessNetItem.m_connectUuid,
|
||||
m_currentDevice,
|
||||
wirelessNetItem.m_connName,
|
||||
configType);
|
||||
}
|
||||
|
||||
height += p_listWidgetItem->sizeHint().height();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue