fix:kylin can not send signal to control center, when connection state change
This commit is contained in:
parent
4c1c01861e
commit
29ac3765f3
|
@ -820,11 +820,6 @@ void WlanPage::onConnectionStateChanged(QString uuid,
|
|||
NetworkManager::ActiveConnection::State state,
|
||||
NetworkManager::ActiveConnection::Reason reason)
|
||||
{
|
||||
if (!m_connectResource->isWirelessConnection(uuid)) {
|
||||
qDebug()<< LOG_FLAG << "it is not wireless connection" << uuid;
|
||||
return;
|
||||
}
|
||||
|
||||
QString devName, ssid;
|
||||
m_wirelessNetResource->getSsidByUuid(uuid, ssid);
|
||||
m_wirelessNetResource->getDeviceByUuid(uuid, devName);
|
||||
|
@ -838,6 +833,11 @@ void WlanPage::onConnectionStateChanged(QString uuid,
|
|||
return;
|
||||
}
|
||||
|
||||
if (!m_connectResource->isWirelessConnection(uuid)) {
|
||||
qDebug()<< LOG_FLAG << "it is not wireless connection" << uuid;
|
||||
return;
|
||||
}
|
||||
|
||||
sendApStateChangeSignal(uuid, ssid, devName, state);
|
||||
wlanShowNotify(ssid, state, reason);
|
||||
|
||||
|
|
Loading…
Reference in New Issue