diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-15 15:04:00 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-15 15:04:00 -0600 |
commit | dd3c727e1fe4cf2dc51a7f0edfb93ba25863c6a1 (patch) | |
tree | 5038e17c09e1f5de3169f3f924fc47d85882d5b0 /ui | |
parent | 240634b6d87642261b063267c3938bb455e09315 (diff) | |
download | horizon-dd3c727e1fe4cf2dc51a7f0edfb93ba25863c6a1.tar.gz horizon-dd3c727e1fe4cf2dc51a7f0edfb93ba25863c6a1.tar.bz2 horizon-dd3c727e1fe4cf2dc51a7f0edfb93ba25863c6a1.tar.xz horizon-dd3c727e1fe4cf2dc51a7f0edfb93ba25863c6a1.zip |
Qt UI: Make temp var for string
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt5/netsimplewifipage.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc index 9b41407..1337442 100644 --- a/ui/qt5/netsimplewifipage.cc +++ b/ui/qt5/netsimplewifipage.cc @@ -311,9 +311,11 @@ bool NetworkSimpleWirelessPage::validatePage() { if(passphrase->isHidden()) { pass = nullptr; } else { - pass = ("\"" + passphrase->text().toStdString() + "\"").c_str(); + std::string password = ("\"" + passphrase->text().toStdString() + "\""); + pass = password.c_str(); } - ssid = ("\"" + items[0]->text().toStdString() + "\"").c_str(); + std::string network = ("\"" + items[0]->text().toStdString() + "\""); + ssid = network.c_str(); tain_now_g(); if(wpactrl_associate_g(&control, ssid, pass) == 0) { |