Only the open the file if the user clicked ok in the dialog