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