summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-13 09:28:15 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-13 09:28:15 +0000
commit70d11853899dcbc270c70172a0b4f5e9729996c4 (patch)
treeebe4694edf78f4570417ad31e40a17fea9b57ebe /perl-install
parentaca2fdec5739a229e3efbe28290ed5158dc3c73f (diff)
downloaddrakx-70d11853899dcbc270c70172a0b4f5e9729996c4.tar
drakx-70d11853899dcbc270c70172a0b4f5e9729996c4.tar.gz
drakx-70d11853899dcbc270c70172a0b4f5e9729996c4.tar.bz2
drakx-70d11853899dcbc270c70172a0b4f5e9729996c4.tar.xz
drakx-70d11853899dcbc270c70172a0b4f5e9729996c4.zip
don't try to remove newly added widgets
Diffstat (limited to 'perl-install')
-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);