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