summaryrefslogtreecommitdiff
path: root/src/wx/general_preferences_page.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-14 00:30:24 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-14 00:30:24 +0100
commiteaa1619b2925643850e5d801f9743dfc722326e0 (patch)
tree587096b9f748695aed82e6e53a0d4ac82c4b26f1 /src/wx/general_preferences_page.h
parent69fc0cceb5ac548bc4c56305dc4530dbc6a6e34b (diff)
Fix crashes if add_config_file_controls() is not called.
e.g. when opening the player preferences.
Diffstat (limited to 'src/wx/general_preferences_page.h')
-rw-r--r--src/wx/general_preferences_page.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/general_preferences_page.h b/src/wx/general_preferences_page.h
index 34801a2ca..d871c2506 100644
--- a/src/wx/general_preferences_page.h
+++ b/src/wx/general_preferences_page.h
@@ -60,12 +60,12 @@ private:
void check_for_updates_changed();
void check_for_test_updates_changed();
- CheckBox* _set_language;
- wxChoice* _language;
- FilePickerCtrl* _config_file;
- FilePickerCtrl* _cinemas_file;
- CheckBox* _check_for_updates;
- CheckBox* _check_for_test_updates;
+ CheckBox* _set_language = nullptr;
+ wxChoice* _language = nullptr;
+ FilePickerCtrl* _config_file = nullptr;
+ FilePickerCtrl* _cinemas_file = nullptr;
+ CheckBox* _check_for_updates = nullptr;
+ CheckBox* _check_for_test_updates = nullptr;
};