Fix windows problem with QDialog.closeEvent propagation.