mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-06 06:31:07 +01:00
Fix for bug 180, 'Close' now handled properly.
This commit is contained in:
@@ -989,6 +989,7 @@ static const unsigned char beep[] =
|
||||
BEGIN_EVENT_TABLE(ProgressDialog, wxDialog)
|
||||
EVT_BUTTON(wxID_CANCEL, ProgressDialog::OnCancel)
|
||||
EVT_BUTTON(wxID_OK, ProgressDialog::OnStop)
|
||||
EVT_CLOSE(ProgressDialog::OnCloseWindow)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
//
|
||||
@@ -1352,6 +1353,12 @@ ProgressDialog::OnStop(wxCommandEvent & e)
|
||||
mStop = true;
|
||||
}
|
||||
|
||||
void
|
||||
ProgressDialog::OnCloseWindow(wxCloseEvent & WXUNUSED(event))
|
||||
{
|
||||
mCancel = true;
|
||||
}
|
||||
|
||||
void
|
||||
ProgressDialog::Beep()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user