diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-14 19:38:18 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-14 19:38:18 -0600 |
commit | dcaa343ed25955a38358c185d1bb3fea44bb7e11 (patch) | |
tree | 29d16b67914322ebedfe5f5db472d07fd88be65f | |
parent | 444825dd4e46432346938b98ade360efac252e41 (diff) | |
download | horizon-dcaa343ed25955a38358c185d1bb3fea44bb7e11.tar.gz horizon-dcaa343ed25955a38358c185d1bb3fea44bb7e11.tar.bz2 horizon-dcaa343ed25955a38358c185d1bb3fea44bb7e11.tar.xz horizon-dcaa343ed25955a38358c185d1bb3fea44bb7e11.zip |
Qt UI: Ensure STAMP is updated before attempting to associate
-rw-r--r-- | ui/qt5/netsimplewifipage.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc index 12f8301..0fefda5 100644 --- a/ui/qt5/netsimplewifipage.cc +++ b/ui/qt5/netsimplewifipage.cc @@ -302,12 +302,19 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) { bool NetworkSimpleWirelessPage::validatePage() { #ifdef HAS_INSTALL_ENV const char *ssid, *pass; - if(passphrase->isHidden()) pass = nullptr; - else pass = passphrase->text().toStdString().c_str(); + + if(passphrase->isHidden()) { + pass = nullptr; + } else { + pass = passphrase->text().toStdString().c_str(); + } ssid = ssidListView->selectedItems()[0]->text().toStdString().c_str(); + tain_now_g(); if(wpactrl_associate_g(&control, ssid, pass) == 0) { - QMessageBox::critical(this, tr("Could Not Connect"), tr("An issue occurred connecting to the specified wireless network. Ensure your passphrase is correct and try again.")); + QMessageBox::critical(this, tr("Could Not Connect"), + tr("An issue occurred connecting to the specified wireless network. " + "Ensure your passphrase is correct and try again.")); return false; } #endif /* HAS_INSTALL_ENV */ |