summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-18 14:20:49 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-18 14:20:49 -0600
commit8dd9910c0cce121b7120cd542fa1557da7eb2282 (patch)
treee52b365f8ef1aeddb628635cd0a99fc771e6e9eb /ui
parent576f51b57112b27546c3cc31be95fd5775715214 (diff)
downloadhorizon-8dd9910c0cce121b7120cd542fa1557da7eb2282.tar.gz
horizon-8dd9910c0cce121b7120cd542fa1557da7eb2282.tar.bz2
horizon-8dd9910c0cce121b7120cd542fa1557da7eb2282.tar.xz
horizon-8dd9910c0cce121b7120cd542fa1557da7eb2282.zip
Qt UI: Handle the other type of NULL SSID string
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/netsimplewifipage.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc
index c5a9eb4..bec143c 100644
--- a/ui/qt5/netsimplewifipage.cc
+++ b/ui/qt5/netsimplewifipage.cc
@@ -192,6 +192,9 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) {
/* Don't bother with empty SSIDs. */
if(ssid.empty()) continue;
+ /* since this *is* destructive, we don't run it on our actual SSID */
+ if(QString::fromStdString(ssid)
+ .remove("\\x00", Qt::CaseSensitive).size() == 0) continue;
QIcon icon;
if(network.signal_level < -90) {