summaryrefslogtreecommitdiff
path: root/ui/qt5/netsimplewifipage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/netsimplewifipage.cc')
-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) {