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