I believe this won't close the UpdateDialog QWidget, which means there would be a memory leak since it also won't be deleted