Merge branch 'y2209bug' into 'dbus-interface'
Fixbug 133311 See merge request kylin-desktop/kylin-nm!689
This commit is contained in:
commit
c6c67d30bf
|
@ -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