Subject: | fileSelectPage crashes if -directory doesn't exist |
If the -directory argument to addFileSelectPage() does not exist on
the fileystem, when the user clicks the Browse button, Tk::Wizard sends
that -directory to getOpenFile() function as the -initialdir.
Unfortunately, if -initialdir does not exist, getOpenFile dies, and
Tk::Wizard dumps a stack trace to STDERR.
Two possible solutions: 1. Just document this behavior (placing the
onus on the programmer to supply a good -directory), or 2. make sure the
-directory exists before setting the Browse button up for failure.
--
- - Martin 'Kingpin' Thurn