git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35614
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxDialog::IsModal() const
{
bool wxDialog::IsModal() const
{
+ return wxModalDialogs.Find((wxDialog *)this) != NULL; // const_cast
+ // return m_isModalStyle;
// Replacement for Show(TRUE) for modal dialogs - returns return code
int wxDialog::ShowModal()
{
// Replacement for Show(TRUE) for modal dialogs - returns return code
int wxDialog::ShowModal()
{
// dialogs and should work for both of them
void wxDialog::EndModal(int retCode)
{
// dialogs and should work for both of them
void wxDialog::EndModal(int retCode)
{
- SetReturnCode(retCode);
- Show(FALSE);
+ SetReturnCode(retCode);
+ Show(FALSE);
+ SetModal(false);