From 12b33147c885ee6efd425351fed7cd4afec7dd88 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 17 Aug 2009 14:35:02 +0000 Subject: Only show profile info when necessary. --- lib/network/drakfirewall.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 %s", $net->{PROFILE}) }), + if_($net->{PROFILE} && network::network::netprofile_count() > 0, { label => N("Those settings will be saved for the network profile %s", $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 } }, -- cgit v1.2.1