// Created: 2005-01-21
// RCS-ID: $Id$
// Copyright: (c) 2005 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
#ifdef __WXMSW__
#include "wx/evtloop.h" // for SetCriticalWindow()
+ #include "wx/scopeguard.h"
#endif // __WXMSW__
// ----------------------------------------------------------------------------
fname.GetPathWithSep(),
fname.GetFullName()
#ifdef __WXMSW__
- , _("Executable files (*.exe)|*.exe|All files (*.*)|*.*||")
+ , _("Executable files (*.exe)|*.exe|") + wxALL_FILES
#endif // __WXMSW__
);
if ( dlg.ShowModal() == wxID_OK )
// 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<wxWindow *>(NULL) );
#endif // __WXMSW__
return dlg.ShowModal() == wxID_OK && dbgrpt.GetFilesCount() != 0;