Close a modal dialog even when it doesn't have any buttons.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Sep 2010 11:52:06 +0000 (11:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Sep 2010 11:52:06 +0000 (11:52 +0000)
commitffc71ce59daf0b93697aac0a50bb3fdb9391b0ca
treea8e16f8783db5e77889e8138747a1fdcaeb0ab19
parentf1b08e84a191caaa975569e0cac89658058c7730
Close a modal dialog even when it doesn't have any buttons.

The close button in the dialog title bar should work even if there are no
buttons in the dialog itself (unlike the Escape key which works as an
accelerator for a button), so close the dialog explicitly if the emulated
button click wasn't processed in wxDialogBase::OnCloseWindow().

Closes #12513.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/dlgcmn.cpp