fix bug90701

This commit is contained in:
jzxc95 2021-11-16 10:14:27 +08:00
parent 479666c93c
commit 917b2408a6
1 changed files with 7 additions and 1 deletions

View File

@ -518,6 +518,7 @@ void WlanPage::onWlanRemoved(QString interface, QString ssid)
} else {
deleteWirelessItemFormMap(m_activateConnectionItemMap,
m_activatedNetListWidget, ssid);
showDesktopNotify(tr("WLAN Disconnected Successfully"));
QListWidgetItem *p_listWidgetItem = addEmptyItem(m_activatedNetListWidget);
m_activateConnectionItemMap.insert(EMPTY_SSID, p_listWidgetItem);
@ -864,9 +865,14 @@ void WlanPage::onConnectionStateChanged(QString uuid,
if (m_connectResource->isApConnection(uuid)) {
sendApStateChangeSignal(uuid, ssid, devName, state);
} else {
if (state == NetworkManager::ActiveConnection::State::Deactivated &&
!m_activateConnectionItemMap.contains(ssid)) {
qDebug() << "wlan remove before deactivated";
} else {
wlanShowNotify(ssid, state, reason);
}
}
if (devName != m_currentDevice) {
return;