fix bug90701
This commit is contained in:
parent
479666c93c
commit
917b2408a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue