summaryrefslogtreecommitdiff
path: root/src/wx/full_config_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-23 01:11:28 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-23 20:08:03 +0100
commit5088493af614f6edb3ced5bc63c7c637c4ed12d2 (patch)
tree77bc861983f547a758bc7987084aa2f63e13b38d /src/wx/full_config_dialog.cc
parent6d7cb904ba47773e0d50b3bf3e5162c0f6df9896 (diff)
Fix some wxWidgets assertion failures.
Casued by specifying wxFD_OVERWRITE_PROMPT without wxFD_SAVE; it makes no sense and in wx3.1 it raises an error.
Diffstat (limited to 'src/wx/full_config_dialog.cc')
-rw-r--r--src/wx/full_config_dialog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc
index e718844f1..3b07c7765 100644
--- a/src/wx/full_config_dialog.cc
+++ b/src/wx/full_config_dialog.cc
@@ -102,12 +102,12 @@ private:
++r;
add_label_to_sizer (table, _panel, _("Configuration file"), true, wxGBPosition (r, 0));
- _config_file = new FilePickerCtrl (_panel, _("Select configuration file"), "*.xml", true, true);
+ _config_file = new FilePickerCtrl (_panel, _("Select configuration file"), "*.xml", true, false);
table->Add (_config_file, wxGBPosition (r, 1));
++r;
add_label_to_sizer (table, _panel, _("Cinema and screen database file"), true, wxGBPosition (r, 0));
- _cinemas_file = new FilePickerCtrl (_panel, _("Select cinema and screen database file"), "*.xml", true, true);
+ _cinemas_file = new FilePickerCtrl (_panel, _("Select cinema and screen database file"), "*.xml", true, false);
table->Add (_cinemas_file, wxGBPosition (r, 1));
Button* export_cinemas = new Button (_panel, _("Export..."));
table->Add (export_cinemas, wxGBPosition (r, 2));