From 46067f935cbb0ac99449fe2eac7d72acec2e2065 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Mon, 8 Sep 2003 01:22:26 +0000 Subject: - Use a field in the $printer data structure and no a global variable for the expert mode. - Fixed bug of database not being re-read when switching between normal and expert mode with the new GTK2 main window. --- perl-install/printer/cups.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/printer/cups.pm') diff --git a/perl-install/printer/cups.pm b/perl-install/printer/cups.pm index d0b89eabf..468625d65 100644 --- a/perl-install/printer/cups.pm +++ b/perl-install/printer/cups.pm @@ -96,7 +96,7 @@ sub get_formatted_remote_queues { # CUPS daemon knows due to broadcasting of remote servers or # "BrowsePoll" entries in the local /etc/cups/cupsd.conf/ map { - join('!', if_($::expert, N("CUPS")), N("Configured on other machines"), $_); + join('!', if_($printer->{expert}, N("CUPS")), N("Configured on other machines"), $_); } map { my $comment = N("On CUPS server \"%s\"", $_->{ipp}) . ($_->{queuename} eq $printer->{DEFAULT} ? N(" (Default)") : ""); "$_->{queuename}: $comment"; -- cgit v1.2.1