diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-07-13 09:28:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-07-13 09:28:15 +0000 |
commit | 70d11853899dcbc270c70172a0b4f5e9729996c4 (patch) | |
tree | ebe4694edf78f4570417ad31e40a17fea9b57ebe | |
parent | aca2fdec5739a229e3efbe28290ed5158dc3c73f (diff) | |
download | drakx-backup-do-not-use-70d11853899dcbc270c70172a0b4f5e9729996c4.tar drakx-backup-do-not-use-70d11853899dcbc270c70172a0b4f5e9729996c4.tar.gz drakx-backup-do-not-use-70d11853899dcbc270c70172a0b4f5e9729996c4.tar.bz2 drakx-backup-do-not-use-70d11853899dcbc270c70172a0b4f5e9729996c4.tar.xz drakx-backup-do-not-use-70d11853899dcbc270c70172a0b4f5e9729996c4.zip |
don't try to remove newly added widgets
-rw-r--r-- | perl-install/standalone/net_applet | 4 |
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); |