diff --git a/src/backend/dbus-interface/kywirelessnetresource.cpp b/src/backend/dbus-interface/kywirelessnetresource.cpp index edf1c957..09f7380a 100644 --- a/src/backend/dbus-interface/kywirelessnetresource.cpp +++ b/src/backend/dbus-interface/kywirelessnetresource.cpp @@ -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;