X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/159b66c02a8f1c724d1af3c768ad5d90f4c8a0e2..243d4b360385d3364e96d5600f693139e359fb3b:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 86a63a1090..608a40ea4e 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -141,7 +141,15 @@ void wxAppBase::ProcessPendingEvents() void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus)) { + if ( active == m_isActive ) + return; + m_isActive = active; + + wxActivateEvent event(wxEVT_ACTIVATE_APP, active); + event.SetEventObject(this); + + (void)ProcessEvent(event); } #endif // wxUSE_GUI @@ -395,9 +403,6 @@ void ShowAssertDialog(const wxChar *szFile, int nLine, const wxChar *szMsg) // this function is called when an assert fails void wxOnAssert(const wxChar *szFile, int nLine, const wxChar *szMsg) { - wxMessageBox( "ttest", "test", wxOK ); - return; - if ( !wxTheApp ) { // by default, show the assert dialog box - we can't customize this