summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/standalone/net_applet4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 53eb02bdf..53bdd8b74 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -211,9 +211,7 @@ sub go2State {
$current_state = $state_type;
$current_interface = $interface;
if ($menu) {
- foreach (keys %wireless_networks) {
- $wireless_networks{$_}{menuitem}->get_parent and $menu->remove($wireless_networks{$_}{menuitem});
- }
+ $_->{menuitem}->get_parent and $menu->remove($_->{menuitem}) foreach values %wireless_networks;
$menu->destroy;
}
$menu = generate_menu($state_type, $interface);