summaryrefslogtreecommitdiffstats
path: root/samba_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-03-11 15:13:47 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-03-11 15:13:47 +0000
commitb51614e95ab1b16e92eb2d393a928cbcdf6a76f3 (patch)
tree91f4846a920bd193855ba39abe71da46b8297b44 /samba_wizard
parent09f7fa4f1efac71b7b5985136f0ef25d4b4f5f5a (diff)
downloaddrakwizard-b51614e95ab1b16e92eb2d393a928cbcdf6a76f3.tar
drakwizard-b51614e95ab1b16e92eb2d393a928cbcdf6a76f3.tar.gz
drakwizard-b51614e95ab1b16e92eb2d393a928cbcdf6a76f3.tar.bz2
drakwizard-b51614e95ab1b16e92eb2d393a928cbcdf6a76f3.tar.xz
drakwizard-b51614e95ab1b16e92eb2d393a928cbcdf6a76f3.zip
fix printer sharing appear when not selected
Diffstat (limited to 'samba_wizard')
-rwxr-xr-xsamba_wizard/Samba.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/samba_wizard/Samba.pm b/samba_wizard/Samba.pm
index d23b4a5a..7237079d 100755
--- a/samba_wizard/Samba.pm
+++ b/samba_wizard/Samba.pm
@@ -176,7 +176,12 @@ $o->{pages} = {
{ label => N("Read list:"), help => N("root, fred, \@users, \@wheel"), val => \$o->{var}{wiz_read_list} },
{ label => N("Write list:"), help => N("root, fred, \@users, \@wheel"), val => \$o->{var}{wiz_write_list} },
],
- next => 'ask_printers'
+ complete => sub {
+ if ($o->{var}{wiz_do_printer_sharing} == "1") {
+ return 'ask_printers'
+ } else { return 'summary' }
+ },
+ next => 'summary',
},
ask_printers => {
name => N("Select which printers you want to be accessible from known users"),