diff options
-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')); |