diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-16 20:14:12 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-16 20:14:12 -0600 |
commit | ffdba4b351b8093c37ac6c21fe14704fc95d072f (patch) | |
tree | cbe5723d9962cd98d6cb06ca8fcd863795da9c5e | |
parent | 0cea6da5ef21dc8f6abe8586c72aec7c8a43dd59 (diff) | |
download | horizon-ffdba4b351b8093c37ac6c21fe14704fc95d072f.tar.gz horizon-ffdba4b351b8093c37ac6c21fe14704fc95d072f.tar.bz2 horizon-ffdba4b351b8093c37ac6c21fe14704fc95d072f.tar.xz horizon-ffdba4b351b8093c37ac6c21fe14704fc95d072f.zip |
Qt UI: Handle wpactrl_start errors better
-rw-r--r-- | ui/qt5/netsimplewifipage.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc index ca2607e..e2bf943 100644 --- a/ui/qt5/netsimplewifipage.cc +++ b/ui/qt5/netsimplewifipage.cc @@ -84,7 +84,8 @@ void NetworkSimpleWirelessPage::doScan() { tain_now_g(); if(!wpactrl_start_g(&control, suppsock.c_str(), 2000)) { rescanButton->setEnabled(false); - statusLabel->setText(tr("Couldn't communicate with wireless subsystem.")); + statusLabel->setText(tr("Couldn't communicate with wireless subsystem (Code %1)").arg(errno)); + return; } response = wpactrl_command_g(&control, "SCAN"); |