diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-17 23:20:17 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-17 23:20:17 -0600 |
commit | 27df9474a63890fd289825a4a5039f50946f895c (patch) | |
tree | ddc14f68dac668e2f22c81dbdd53ba5bd0e847da /ui | |
parent | 4b411b2f41694e7f03789365c1dff86663411bc9 (diff) | |
download | horizon-27df9474a63890fd289825a4a5039f50946f895c.tar.gz horizon-27df9474a63890fd289825a4a5039f50946f895c.tar.bz2 horizon-27df9474a63890fd289825a4a5039f50946f895c.tar.xz horizon-27df9474a63890fd289825a4a5039f50946f895c.zip |
Qt UI: Success is 1, not 0
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; } |