scan flags -> wpa_flags.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-ssidmenuwidget.cpp
index 90934547adfdd62fb4153276d3d22d9d74a7a76e..df07fdf468bd6af79d944c9001e78c1b1b17729c 100644 (file)
@@ -98,11 +98,11 @@ void DhcpcdSsidMenuWidget::setScan(DHCPCD_WI_SCAN *scan)
        } else
                selicon->setPixmap(NULL);
        ssid->setText(scan->ssid);
-       if (scan->flags[0] == '\0')
-               icon = DhcpcdQt::getIcon("status", "dialog-warning");
-       else
+       if (scan->flags & WSF_SECURE)
                icon = DhcpcdQt::getIcon("status",
                    "network-wireless-encrypted");
+       else
+               icon = DhcpcdQt::getIcon("status", "dialog-warning");
        picon = icon.pixmap(16, 16);
        encicon->setPixmap(picon);