summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networkingpage.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/networkingpage.cc b/networkingpage.cc
index e78a8f8..96903e8 100644
--- a/networkingpage.cc
+++ b/networkingpage.cc
@@ -63,18 +63,9 @@ int NetworkingPage::nextId() const
{
if(radioGroup->checkedButton() == simple)
{
- bool tryWireless = false;
-
- for(auto &iface : this->horizonWizard()->interfaces)
- {
- if(iface.is_wireless())
- {
- tryWireless = true;
- break;
- }
- }
-
- if(tryWireless)
+ if(std::any_of(this->horizonWizard()->interfaces.begin(),
+ this->horizonWizard()->interfaces.end(),
+ [=](Horizon::NetworkInterface &iface) { return iface.is_wireless(); }))
{
return HorizonWizard::Page_Network_SimpleWireless;
}