Changed dialog behaviour on Mac OSX.