Fix errors in update checker resulting from trying to use the wrong option type

Originally committed to SVN as r5805.
This commit is contained in:
Thomas Goyne 2011-10-29 05:12:19 +00:00
parent dedccc1f58
commit ccebd521c6

View file

@ -503,7 +503,7 @@ VersionCheckerResultDialog::VersionCheckerResultDialog(const wxString &main_text
}
automatic_check_checkbox = new wxCheckBox(this, -1, _("Auto Check for Updates"));
automatic_check_checkbox->SetValue(!!OPT_GET("App/Auto/Check For Updates")->GetInt());
automatic_check_checkbox->SetValue(OPT_GET("App/Auto/Check For Updates")->GetBool());
wxButton *remind_later_button = 0;
if (updates.size() > 0)
@ -549,7 +549,7 @@ void VersionCheckerResultDialog::OnRemindMeLater(wxCommandEvent &evt)
void VersionCheckerResultDialog::OnClose(wxCloseEvent &evt)
{
OPT_SET("App/Auto/Check For Updates")->SetInt(automatic_check_checkbox->GetValue()?1:0);
OPT_SET("App/Auto/Check For Updates")->SetBool(automatic_check_checkbox->GetValue());
Destroy();
}