* 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-861f7616d084master
parent
18bf3bfa9c
commit
31c4a1de54
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue