X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355b4d3de54b76db87439fa2142c7334a6e48f85..4bc6f7a06c494917409bbb673526f090bc51d2d2:/src/motif/toplevel.cpp diff --git a/src/motif/toplevel.cpp b/src/motif/toplevel.cpp index 01342c5b9b..bfa9a8a982 100644 --- a/src/motif/toplevel.cpp +++ b/src/motif/toplevel.cpp @@ -65,14 +65,7 @@ static void wxTLWEventHandler( Widget wid, void wxTopLevelWindowMotif::PreDestroy() { -#ifdef __VMS -#pragma message disable codcauunr -#endif - if ( (GetWindowStyleFlag() & wxDIALOG_MODAL) != wxDIALOG_MODAL ) - wxModelessWindows.DeleteObject(this); -#ifdef __VMS -#pragma message enable codcauunr -#endif + wxModelessWindows.DeleteObject(this); m_icons.m_icons.Empty();