1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Leland's fix for bugs 44 and 344.

This commit is contained in:
v.audacity
2012-02-13 22:43:43 +00:00
parent 9af0547060
commit d7ac6df84c

View File

@@ -1175,6 +1175,17 @@ ProgressDialog::ProgressDialog(const wxString & title, const wxString & message,
}
}
#endif
#if defined(__WXMSW__)
// See Bug #334
// LL: On Windows, the application message loop is still active even though
// all of the windows have been disabled. So, keyboard shortcuts still
// work in windows not related to the progress diawhich allows interaction
// when it should be blocked.
// This disabled the application message loop so keyboard shortcuts will
// no longer be processed.
wxTheApp->SetEvtHandlerEnabled(false);
#endif
}
//
@@ -1189,6 +1200,11 @@ ProgressDialog::~ProgressDialog()
Beep();
}
#if defined(__WXMSW__)
// Undo above fix for bug 334.
wxTheApp->SetEvtHandlerEnabled(true);
#endif
#if defined(__WXMAC__)
wxWindow *w = wxTheApp->GetTopWindow();
if (w) {