summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/main.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-04-04 17:57:49 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-04-04 17:57:49 +0000
commitf55295c7319bb51ab7a22c368582624e1e424655 (patch)
tree4c11f2085f7b417ced92b195414d98e1f91e8296 /perl-install/printer/main.pm
parentadd6d3c510e4efb7b1f41615ccb6a19a3c3b5c3e (diff)
downloaddrakx-backup-do-not-use-f55295c7319bb51ab7a22c368582624e1e424655.tar
drakx-backup-do-not-use-f55295c7319bb51ab7a22c368582624e1e424655.tar.gz
drakx-backup-do-not-use-f55295c7319bb51ab7a22c368582624e1e424655.tar.bz2
drakx-backup-do-not-use-f55295c7319bb51ab7a22c368582624e1e424655.tar.xz
drakx-backup-do-not-use-f55295c7319bb51ab7a22c368582624e1e424655.zip
- Fixed bug #4319: Printer options cannot be set after renaming the printer or changing the connection type
- Fixed bug of PostScript printers with manufacturer-supplied PPD cannot be renamed at all - Fixed bug of print queue being deleted when renaming fails - Fixed bug of printerdrake trying to open a message window when non-interactive queue generation fails - Fixed pre-definition of $printer->{ARGS}, this bug made printerdrake crashing sometimes
Diffstat (limited to 'perl-install/printer/main.pm')
-rw-r--r--perl-install/printer/main.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm
index fd96b9b39..5a82e56a8 100644
--- a/perl-install/printer/main.pm
+++ b/perl-install/printer/main.pm
@@ -211,7 +211,7 @@ sub resetinfo($) {
$printer->{QUEUE} = "";
$printer->{OLD_QUEUE} = "";
$printer->{OLD_CHOICE} = "";
- $printer->{ARGS} = "";
+ $printer->{ARGS} = {};
$printer->{DBENTRY} = "";
$printer->{DEFAULT} = "";
$printer->{currentqueue} = {};
@@ -1927,7 +1927,7 @@ sub configure_queue($) {
("--ppd",
($printer->{currentqueue}{ppd} !~ m!^/! ?
"/usr/share/cups/model/" : "") .
- $printer->{currentqueue}{ppd}) : "") :
+ $printer->{currentqueue}{ppd}) : ()) :
("-d", "raw"))),
"-N", $printer->{currentqueue}{desc},
"-L", $printer->{currentqueue}{loc},