X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..d2e66707deb10dea6f92e3e4092f8a43ef942a5d:/src/generic/dbgrptg.cpp diff --git a/src/generic/dbgrptg.cpp b/src/generic/dbgrptg.cpp index 4b96e96975..5d967fc7eb 100644 --- a/src/generic/dbgrptg.cpp +++ b/src/generic/dbgrptg.cpp @@ -6,7 +6,7 @@ // Created: 2005-01-21 // RCS-ID: $Id$ // Copyright: (c) 2005 Vadim Zeitlin -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -46,6 +46,7 @@ #ifdef __WXMSW__ #include "wx/evtloop.h" // for SetCriticalWindow() + #include "wx/scopeguard.h" #endif // __WXMSW__ // ---------------------------------------------------------------------------- @@ -333,9 +334,9 @@ wxDebugReportDialog::wxDebugReportDialog(wxDebugReport& dbgrpt) // ... and the list of files in this debug report with buttons to view them wxSizer *sizerFileBtns = new wxBoxSizer(wxVERTICAL); sizerFileBtns->AddStretchSpacer(1); - sizerFileBtns->Add(new wxButton(this, wxID_VIEW_DETAILS, wxT("&View...")), + sizerFileBtns->Add(new wxButton(this, wxID_VIEW_DETAILS, _("&View...")), wxSizerFlags().Border(wxBOTTOM)); - sizerFileBtns->Add(new wxButton(this, wxID_OPEN, wxT("&Open...")), + sizerFileBtns->Add(new wxButton(this, wxID_OPEN, _("&Open...")), wxSizerFlags().Border(wxTOP)); sizerFileBtns->AddStretchSpacer(1); @@ -517,6 +518,9 @@ bool wxDebugReportPreviewStd::Show(wxDebugReport& dbgrpt) const // before entering the event loop (from ShowModal()), block the event // handling for all other windows as this could result in more crashes wxEventLoop::SetCriticalWindow(&dlg); + + wxON_BLOCK_EXIT1( wxEventLoop::SetCriticalWindow, + static_cast(NULL) ); #endif // __WXMSW__ return dlg.ShowModal() == wxID_OK && dbgrpt.GetFilesCount() != 0;