Skip Menu |

This queue is for tickets about the Tk-Wizard CPAN distribution.

Report information
The Basics
Id: 67097
Status: resolved
Priority: 0/
Queue: Tk-Wizard

People
Owner: Nobody in particular
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 2.151
Fixed in: (no value)



Subject: [patch] error in POD for DIALOGUE_really_quit
Hi! It's me again and I found another unimportant thing: In section DIALOGUE_really_quit, it says: 'if the user clicks "Yes", this function returns true (otherwise returns a false value).' The opposite isthe case. If the user clicks YES, false is returned. That's because in line 1901, the value is inverted: return !$self-> {really_quit}; (note the exclamation mark). Please find attached a patch, solving this (and only this) problem by switching true and false in the POD. Until then, if one wishes to avoid the dialog e.g. for testing purposes, the following can be used: $wizard->configure( -style => 'top', -preCloseWindowAction => sub { return 0; } ); HTH, Alex
Subject: wizard.patch
--- C:\zwischen\cpan\tk-wizard\Wizard-2.151.pm +++ C:\zwischen\cpan\tk-wizard\Wizard.pm @@ -1876,7 +1876,7 @@ This is the default callback for -preCloseWindowAction. It gives the user a Yes/No dialog box; if the user clicks "Yes", -this function returns true (otherwise returns a false value). +this function returns false (otherwise returns a true value). =cut
Subject: Re: [rt.cpan.org #67097] [patch] error in POD for DIALOGUE_really_quit
Date: Thu, 31 Mar 2011 08:19:42 +0200
To: bug-Tk-Wizard [...] rt.cpan.org
From: Lee Goddard <leegee [...] gmail.com>
Thanks, Alex.
Added to Tk-Wizard-2.155.tar.gz