X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/289532452089421ddadbd4726a8469511a19ab76..b0ad146aba58fae678c885a9bc5e30d79bffb494:/src/motif/dialog.cpp diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index 9291ad72fb..dde1f58290 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 17/09/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -21,6 +20,7 @@ #endif #include "wx/evtloop.h" +#include "wx/modalhook.h" #ifdef __VMS__ #pragma message disable nosimpint @@ -288,6 +288,8 @@ bool wxDialog::Show( bool show ) // Shows a dialog modally, returning a return code int wxDialog::ShowModal() { + WX_HOOK_MODAL_DIALOG(); + Show(true); // after the event loop ran, the widget might already have been destroyed