Fixed the button QDialog from addnewfile in centre of window when maximize