Merge branch 'aa' into 'dbus-interface'

解决获取无线列表时,数组越界问题

See merge request kylin-desktop/kylin-nm!202
This commit is contained in:
ren peijia 2021-08-27 09:27:39 +00:00
commit 631b061b92
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ bool KyWirelessNetResource::getWifiNetwork(const QString &devIfaceName, const QS
if (!m_WifiNetworkList.contains(devIfaceName)) {
return false;
} else {
for (int index = 0; m_WifiNetworkList[devIfaceName].size(); index ++){
for (int index = 0; index < m_WifiNetworkList[devIfaceName].size(); index ++){
if (m_WifiNetworkList[devIfaceName].at(index).m_NetSsid == ssid) {
wirelessNetResource = m_WifiNetworkList[devIfaceName].at(index);
return true;