I've put in some more defensive code, as well as fixed a bug where <enter> would OK the dialog even if there was a validation error.
I've put in some more defensive code, as well as fixed a bug where <enter> would OK the dialog even if there was a validation error.