summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-16 14:23:04 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-16 14:23:04 +0000
commitcf503d26a40c7065f055b63f539e0a586bcce7b8 (patch)
treefa495560851bf025c321ae3f38b9370681ac3c4e /perl-install
parentf1783a659651a792ba4471009d0c8d3434eebae9 (diff)
downloaddrakx-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')
-rw-r--r--perl-install/standalone/net_applet2
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'));