* Use wxDialog::OK and wxDialog::Cancel in the handlers for ID_OK and ID_CANCEL respectively

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2212 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-07-26 22:16:41 +00:00
parent 18bf3bfa9c
commit 31c4a1de54
1 changed files with 2 additions and 2 deletions

View File

@ -159,12 +159,12 @@ void AutoFlagDialog::OnOK(wxCommandEvent& event)
else if (Degree270_RadioButton->GetValue())
_Rotate = 3;
wxDialog::EndModal(wxID_OK);
wxDialog::OnOK(event);
}
void AutoFlagDialog::OnCancel(wxCommandEvent& event)
{
wxDialog::EndModal(wxID_CANCEL);
wxDialog::OnCancel(event);
}
void AutoFlagDialog::OnRandRotate(wxCommandEvent& event)