choosing "Cancel" in the message box which appears when an wxASSERT fails also
suppresses wxLogDebug() messages git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -618,7 +618,6 @@ void wxLogFrame::OnSave(wxCommandEvent& event)
|
|||||||
|
|
||||||
// retrieve text and save it
|
// retrieve text and save it
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
// @@@@ TODO: no GetNumberOfLines and GetLineText in wxGTK yet
|
// @@@@ TODO: no GetNumberOfLines and GetLineText in wxGTK yet
|
||||||
wxLogError("Sorry, this function is not implemented under GTK");
|
wxLogError("Sorry, this function is not implemented under GTK");
|
||||||
@@ -844,10 +843,10 @@ void wxOnAssert(const char *szFile, int nLine, const char *szMsg)
|
|||||||
strcat(szBuf, ".");
|
strcat(szBuf, ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !s_bNoAsserts ) {
|
||||||
// send it to the normal log destination
|
// send it to the normal log destination
|
||||||
wxLogDebug(szBuf);
|
wxLogDebug(szBuf);
|
||||||
|
|
||||||
if ( !s_bNoAsserts ) {
|
|
||||||
strcat(szBuf, _("\nDo you want to stop the program?"
|
strcat(szBuf, _("\nDo you want to stop the program?"
|
||||||
"\nYou can also choose [Cancel] to suppress "
|
"\nYou can also choose [Cancel] to suppress "
|
||||||
"further warnings."));
|
"further warnings."));
|
||||||
|
Reference in New Issue
Block a user