ConfigWizard: Fix reset checkbox

This commit is contained in:
Vojtech Kral 2018-04-19 16:49:22 +02:00
parent c3c9ebdd12
commit bdaf1b01be
2 changed files with 3 additions and 2 deletions

View file

@ -107,7 +107,7 @@ struct PageWelcome: ConfigWizardPage
virtual wxPanel* extra_buttons() { return others_buttons; }
virtual void on_page_set();
bool reset_user_profile() const { return cbox_reset->GetValue(); }
bool reset_user_profile() const { return cbox_reset != nullptr ? cbox_reset->GetValue() : false; }
void on_variant_checked();
};