From: Vadim Zeitlin Date: Sat, 26 Jul 2008 22:08:42 +0000 (+0000) Subject: don't use assert dialog under wxDFB, it does more harm than good X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/19a67f39d7615692953f490b9a2d9a9176fdb685?ds=inline don't use assert dialog under wxDFB, it does more harm than good git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index c9e6fbcec4..2df9a21aaf 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -472,10 +472,15 @@ wxRendererNative *wxGUIAppTraitsBase::CreateRenderer() bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg) { -#if defined(__WXMSW__) || !wxUSE_MSGDLG // under MSW we prefer to use the base class version using ::MessageBox() // even if wxMessageBox() is available because it has less chances to // double fault our app than our wxMessageBox() + // + // under DFB the message dialog is not always functional right now + // + // and finally we can't use wxMessageBox() if it wasn't compiled in, of + // course +#if defined(__WXMSW__) || defined(__WXDFB__) || !wxUSE_MSGDLG return wxAppTraitsBase::ShowAssertDialog(msg); #else // wxUSE_MSGDLG wxString msgDlg = msg;