summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_applet
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-13 08:43:52 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-13 08:43:52 +0000
commit050c4afaf710f5742782d2972223ff6d911ca4fd (patch)
tree193774deb316ebbbcbf3712710f6062d10daa23f /perl-install/standalone/net_applet
parent6fb76b9b67344fd67dd19cf61800f24a4e93be36 (diff)
downloaddrakx-backup-do-not-use-050c4afaf710f5742782d2972223ff6d911ca4fd.tar
drakx-backup-do-not-use-050c4afaf710f5742782d2972223ff6d911ca4fd.tar.gz
drakx-backup-do-not-use-050c4afaf710f5742782d2972223ff6d911ca4fd.tar.bz2
drakx-backup-do-not-use-050c4afaf710f5742782d2972223ff6d911ca4fd.tar.xz
drakx-backup-do-not-use-050c4afaf710f5742782d2972223ff6d911ca4fd.zip
don't destroy wireless menuitems on menu destroy
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);
}
}