summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-18 14:05:17 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-18 14:05:17 -0600
commit576f51b57112b27546c3cc31be95fd5775715214 (patch)
tree354c32257acc0a3c4732aba930a77dd1d6f10f88 /ui
parent573d4a52a1982ee07a06579753ea9329d43b5dcd (diff)
downloadhorizon-576f51b57112b27546c3cc31be95fd5775715214.tar.gz
horizon-576f51b57112b27546c3cc31be95fd5775715214.tar.bz2
horizon-576f51b57112b27546c3cc31be95fd5775715214.tar.xz
horizon-576f51b57112b27546c3cc31be95fd5775715214.zip
Qt UI: Store flags away for a rainy day
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/netsimplewifipage.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc
index a78084b..c5a9eb4 100644
--- a/ui/qt5/netsimplewifipage.cc
+++ b/ui/qt5/netsimplewifipage.cc
@@ -188,6 +188,7 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) {
for(size_t net = 0; net < genalloc_len(wpactrl_scanres_t, &nets); net++) {
wpactrl_scanres_t network = netarray[net];
std::string ssid(netstr.s + network.ssid_start, network.ssid_len);
+ std::string flags(netstr.s + network.flags_start, network.flags_len);
/* Don't bother with empty SSIDs. */
if(ssid.empty()) continue;
@@ -212,6 +213,7 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) {
.arg(network.frequency)
.arg(fromMacAddress(network.bssid))
.arg(network.signal_level));
+ netitem->setData(Qt::UserRole, QString::fromStdString(flags));
}
return 1;