diff options
author | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-02-09 14:10:09 +0100 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-02-17 15:01:27 +0200 |
commit | 8f343e8fb17c8bf02c7cda205004efb22592ae70 (patch) | |
tree | 0b8f911f1136a79c23290e203f530c1f263b8b3e /src/wifi/qwifinetworklistmodel.cpp | |
parent | 2a992929f2f47080a898c0018ed73dfe86bedb37 (diff) |
Simplify current SSID handling
by extracting SSID from "Trying to associate"
message.
Change-Id: If90e85d5cedf2366947c810a55fb486d7559d66f
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/wifi/qwifinetworklistmodel.cpp')
-rw-r--r-- | src/wifi/qwifinetworklistmodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wifi/qwifinetworklistmodel.cpp b/src/wifi/qwifinetworklistmodel.cpp index e562b2b..7ed4be4 100644 --- a/src/wifi/qwifinetworklistmodel.cpp +++ b/src/wifi/qwifinetworklistmodel.cpp @@ -125,6 +125,9 @@ void QWifiNetworkListModel::parseScanResults(const QString &results) int pos = 0; QString ssid = QWifiUtils::decodeHexEncoded(info.at(4)); + if (ssid.isEmpty()) + continue; + sensibleNetworks.insert(ssid); QWifiNetwork *knownNetwork = networkForSSID(ssid, &pos); if (!knownNetwork) |