summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-08-17 14:35:02 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-08-17 14:35:02 +0000
commit12b33147c885ee6efd425351fed7cd4afec7dd88 (patch)
treec96c70a3759539150e9d41558e7a0e8c5922361d /lib
parent5665dd4e9523df029f17019d7b64a9e2daf379ad (diff)
downloaddrakx-net-12b33147c885ee6efd425351fed7cd4afec7dd88.tar
drakx-net-12b33147c885ee6efd425351fed7cd4afec7dd88.tar.gz
drakx-net-12b33147c885ee6efd425351fed7cd4afec7dd88.tar.bz2
drakx-net-12b33147c885ee6efd425351fed7cd4afec7dd88.tar.xz
drakx-net-12b33147c885ee6efd425351fed7cd4afec7dd88.zip
Only show profile info when necessary.
Diffstat (limited to 'lib')
-rw-r--r--lib/network/drakfirewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index d6a1191..87a119a 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -265,7 +265,7 @@ You can also give a range of ports (eg: 24300:24350/udp)", $invalid_port));
} },
[
{ label => N("Which services would you like to allow the Internet to connect to?"), title => 1 },
- if_($net->{PROFILE}, { label => N("Those settings will be saved for the network profile <b>%s</b>", $net->{PROFILE}) }),
+ if_($net->{PROFILE} && network::network::netprofile_count() > 0, { label => N("Those settings will be saved for the network profile <b>%s</b>", $net->{PROFILE}) }),
{ text => N("Everything (no firewall)"), val => \$disabled, type => 'bool' },
(map { { text => translate($_->{name}), val => \$_->{on}, type => 'bool', disabled => sub { $disabled } } } @l),
{ label => N("Other ports"), val => \$unlisted, advanced => 1, disabled => sub { $disabled } },