Oh, you are right, clicking outside the dialog closes it and it seems to be handled like "cancel". Wow, how counterintuitive!!! Honestly, this is not the first time i am using a computer and i did not understand how to close a dialog. I think that's the worst case for a UI.