summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-14 19:38:18 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-14 19:38:18 -0600
commitdcaa343ed25955a38358c185d1bb3fea44bb7e11 (patch)
tree29d16b67914322ebedfe5f5db472d07fd88be65f
parent444825dd4e46432346938b98ade360efac252e41 (diff)
downloadhorizon-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.cc13
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 */