Merge branch 'dbus-interface' into 'dbus-interface'
Fix:Solve the problem of abnormal display of activated list after failed to... See merge request kylin-desktop/kylin-nm!369
This commit is contained in:
commit
f42a621e0a
|
@ -812,10 +812,14 @@ void WlanPage::updateWirelessNetArea(QString uuid, QString ssid, QString devName
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteWirelessItemFormMap(m_activateConnectionItemMap, m_activatedNetListWidget, ssid);
|
if (m_activateConnectionItemMap.contains(ssid)) {
|
||||||
QListWidgetItem *p_activeListWidgetItem = addEmptyItem(m_activatedNetListWidget);
|
deleteWirelessItemFormMap(m_activateConnectionItemMap, m_activatedNetListWidget, ssid);
|
||||||
m_activateConnectionItemMap.insert(EMPTY_SSID, p_activeListWidgetItem);
|
QListWidgetItem *p_activeListWidgetItem = addEmptyItem(m_activatedNetListWidget);
|
||||||
m_activatedNetListWidget->setFixedHeight(p_activeListWidgetItem->sizeHint().height());
|
m_activateConnectionItemMap.insert(EMPTY_SSID, p_activeListWidgetItem);
|
||||||
|
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);
|
||||||
|
|
Loading…
Reference in New Issue