X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9cb56f7f2fb75bce8722f81337253f5649325b9..6f36917bbffe00404ae6f653e876d57efc25a8ac:/src/os2/dialog.cpp diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index a0b3fa7c7b..aff9dac015 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -157,7 +157,7 @@ wxDialog::~wxDialog() m_isBeingDeleted = TRUE; wxTopLevelWindows.DeleteObject(this); Show(FALSE); - if (!IsModal) + if (!IsModal()) wxModelessWindows.DeleteObject(this); //