diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-09-16 14:23:04 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-09-16 14:23:04 +0000 |
commit | cf503d26a40c7065f055b63f539e0a586bcce7b8 (patch) | |
tree | fa495560851bf025c321ae3f38b9370681ac3c4e /perl-install/standalone/net_applet | |
parent | f1783a659651a792ba4471009d0c8d3434eebae9 (diff) | |
download | drakx-cf503d26a40c7065f055b63f539e0a586bcce7b8.tar drakx-cf503d26a40c7065f055b63f539e0a586bcce7b8.tar.gz drakx-cf503d26a40c7065f055b63f539e0a586bcce7b8.tar.bz2 drakx-cf503d26a40c7065f055b63f539e0a586bcce7b8.tar.xz drakx-cf503d26a40c7065f055b63f539e0a586bcce7b8.zip |
fix crash when only one interface is configured
Diffstat (limited to 'perl-install/standalone/net_applet')
-rw-r--r-- | perl-install/standalone/net_applet | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet index 53aae8816..d390f27c9 100644 --- a/perl-install/standalone/net_applet +++ b/perl-install/standalone/net_applet @@ -337,7 +337,7 @@ sub generate_menu { $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); $wireless_device and $menu->append(gtkshow($wireless_menu = create_menu(N("Wireless networks"), map { $_->{menuitem} } values %wireless_networks))); - $menu->append($create_item->('setInterface')) if $current_state ne 'notconfigured'; + if (my $set = $current_state ne 'notconfigured' && $create_item->('setInterface')) { $menu->append($set) } $menu->append(gtkshow(create_menu(N("Settings"), grep { $_ } @settings))); $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); $menu->append($create_item->('help')); |