Fix enabling/disabling the default script resolution edit boxes in the preferences dialog

This commit is contained in:
Thomas Goyne 2014-06-29 10:00:07 -07:00
parent 3ef728405d
commit c50d80cf24

View file

@ -257,7 +257,7 @@ void OptionPage::EnableIfChecked(wxControl *cbx, wxControl *ctrl) {
if (!cb) return;
ctrl->Enable(cb->IsChecked());
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!!evt.GetInt()); });
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!!evt.GetInt()); evt.Skip(); });
}
void OptionPage::DisableIfChecked(wxControl *cbx, wxControl *ctrl) {
@ -265,5 +265,5 @@ void OptionPage::DisableIfChecked(wxControl *cbx, wxControl *ctrl) {
if (!cb) return;
ctrl->Enable(!cb->IsChecked());
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!evt.GetInt()); });
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!evt.GetInt()); evt.Skip(); });
}