summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2001-09-21 19:48:40 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2001-09-21 19:48:40 +0000
commitd938cd0659d6187c829c89cc58a4130fc7241d2f (patch)
tree4dbad0a7a4509edc217cdba58e6570a0d9257cdb /perl-install/printer.pm
parentc7ce24b63f1d762d33e8960271bc0a60e455964f (diff)
downloaddrakx-backup-do-not-use-d938cd0659d6187c829c89cc58a4130fc7241d2f.tar
drakx-backup-do-not-use-d938cd0659d6187c829c89cc58a4130fc7241d2f.tar.gz
drakx-backup-do-not-use-d938cd0659d6187c829c89cc58a4130fc7241d2f.tar.bz2
drakx-backup-do-not-use-d938cd0659d6187c829c89cc58a4130fc7241d2f.tar.xz
drakx-backup-do-not-use-d938cd0659d6187c829c89cc58a4130fc7241d2f.zip
When one changes the driver of a freshly added printer, the cursor was not pointed to the old driver, fixed.
Fixed paper size not set according to chosen language during installation.
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r--perl-install/printer.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index d7b0f5674..e9ce0c908 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -1035,8 +1035,10 @@ sub configure_queue($) {
}
# Make a new printer entry in the $printer structure
- $printer->{configured}{$printer->{currentqueue}{'queue'}}{'queuedata'}=
- $printer->{currentqueue};
+ $printer->{configured}{$printer->{currentqueue}{'queue'}}{'queuedata'} =
+ {};
+ copy_printer_params($printer->{currentqueue},
+ $printer->{configured}{$printer->{currentqueue}{'queue'}}{'queuedata'});
$printer->{configured}{$printer->{currentqueue}{'queue'}}{'args'} = {};
if ($printer->{currentqueue}{foomatic}) {
my $tmp = $printer->{OLD_QUEUE};
@@ -1049,7 +1051,6 @@ sub configure_queue($) {
read_cups_options($printer->{currentqueue}{'queue'});
}
# Clean up
- delete($printer->{currentqueue});
delete($printer->{ARGS});
$printer->{OLD_CHOICE} = "";
$printer->{ARGS} = {};