summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-18 10:32:40 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-18 10:32:40 +0000
commit6078decf4bdc728d21118d980d8c9aab09dab4ba (patch)
treeb2bdc47ae68e98f03bf37cfd1c1dc7f61869cbd0 /perl-install
parent6c1b55168cdf18fa8b4dcea2b0db6370395701ba (diff)
downloaddrakx-6078decf4bdc728d21118d980d8c9aab09dab4ba.tar
drakx-6078decf4bdc728d21118d980d8c9aab09dab4ba.tar.gz
drakx-6078decf4bdc728d21118d980d8c9aab09dab4ba.tar.bz2
drakx-6078decf4bdc728d21118d980d8c9aab09dab4ba.tar.xz
drakx-6078decf4bdc728d21118d980d8c9aab09dab4ba.zip
don't use actions submenu when no wireless network is detected
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 81be77940..68f30b405 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -229,7 +229,7 @@ sub generate_menu {
};
my (@settings, @actions);
- my $has_wireless = detect_devices::has_wireless();
+ my $has_wireless = detect_devices::has_wireless() && keys %wireless_networks;
if ($state_type eq 'connected') {
push @actions, $create_item->($_) foreach qw(downNetwork monitorNetwork);