From cf503d26a40c7065f055b63f539e0a586bcce7b8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 16 Sep 2005 14:23:04 +0000 Subject: fix crash when only one interface is configured --- perl-install/standalone/net_applet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone/net_applet') 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')); -- cgit v1.2.1