diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt5/netsimplewifipage.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc index 49b77ff..45d4643 100644 --- a/ui/qt5/netsimplewifipage.cc +++ b/ui/qt5/netsimplewifipage.cc @@ -179,7 +179,7 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) { stralloc netstr = STRALLOC_ZERO; errno = 0; - if(wpactrl_scan_parse(buf.s, buf.len, &nets, &netstr) != 0) { + if(wpactrl_scan_parse(buf.s, buf.len, &nets, &netstr) != 1) { statusLabel->setText(tr("Network listing failed (Code %1)").arg(errno)); return 0; } |