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