X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12a124ddc9f861d00370de1c7dfb660c53e6931b..937d5b6075db060b98daa0f0fadbaa528bc85554:/include/wx/dialog.h diff --git a/include/wx/dialog.h b/include/wx/dialog.h index d3e9e4392d..51852d4953 100644 --- a/include/wx/dialog.h +++ b/include/wx/dialog.h @@ -55,9 +55,9 @@ enum wxDialogLayoutAdaptationMode enum wxDialogModality { - wxDIALOG_MODALITY_NONE = 0, - wxDIALOG_MODALITY_WINDOW_MODAL = 1, - wxDIALOG_MODALITY_APP_MODAL = 2 + wxDIALOG_MODALITY_NONE = 0, + wxDIALOG_MODALITY_WINDOW_MODAL = 1, + wxDIALOG_MODALITY_APP_MODAL = 2 }; extern WXDLLIMPEXP_DATA_CORE(const char) wxDialogNameStr[]; @@ -342,8 +342,8 @@ public: wxDialog *GetDialog() const { return wxStaticCast(GetEventObject(), wxDialog); } - - int GetReturnCode() const + + int GetReturnCode() const { return GetDialog()->GetReturnCode(); } virtual wxEvent *Clone() const { return new wxWindowModalDialogEvent (*this); }