Merge branch 'dbus-interface' of http://gitlab2.kylin.com/kylin-desktop/kylin-nm into 1027-cc

This commit is contained in:
jzxc95 2021-11-02 09:48:34 +08:00
commit 71ba1b44a0
1 changed files with 8 additions and 4 deletions

View File

@ -812,10 +812,14 @@ void WlanPage::updateWirelessNetArea(QString uuid, QString ssid, QString devName
return; return;
} }
if (m_activateConnectionItemMap.contains(ssid)) {
deleteWirelessItemFormMap(m_activateConnectionItemMap, m_activatedNetListWidget, ssid); deleteWirelessItemFormMap(m_activateConnectionItemMap, m_activatedNetListWidget, ssid);
QListWidgetItem *p_activeListWidgetItem = addEmptyItem(m_activatedNetListWidget); QListWidgetItem *p_activeListWidgetItem = addEmptyItem(m_activatedNetListWidget);
m_activateConnectionItemMap.insert(EMPTY_SSID, p_activeListWidgetItem); m_activateConnectionItemMap.insert(EMPTY_SSID, p_activeListWidgetItem);
m_activatedNetListWidget->setFixedHeight(p_activeListWidgetItem->sizeHint().height()); m_activatedNetListWidget->setFixedHeight(p_activeListWidgetItem->sizeHint().height());
} else {
qDebug() << LOG_FLAG << ssid << "is not in activeconnection map";
}
KyWirelessNetItem wirelessNetItem; KyWirelessNetItem wirelessNetItem;
bool ret = m_wirelessNetResource->getWifiNetwork(devName, ssid, wirelessNetItem); bool ret = m_wirelessNetResource->getWifiNetwork(devName, ssid, wirelessNetItem);