Fixed dialog setDefaultButton (issue #39)