summaryrefslogtreecommitdiff
path: root/src/wx/full_config_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-10-17 19:47:54 +0100
committerCarl Hetherington <cth@carlh.net>2018-10-17 19:47:54 +0100
commit08d14b3aac137152a3aeb58c170b1b69bd0dd9eb (patch)
treee77c65084e72290f77d5346e4020d3357403c018 /src/wx/full_config_dialog.cc
parent3c74b178eeea8418f044877f88e94003605497b6 (diff)
Revert "Remove wxWidgets' file overwrite checks in favour of our own (because of #1383)."
This reverts commit 3c74b178eeea8418f044877f88e94003605497b6.
Diffstat (limited to 'src/wx/full_config_dialog.cc')
-rw-r--r--src/wx/full_config_dialog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc
index 8c822e173..974635a8b 100644
--- a/src/wx/full_config_dialog.cc
+++ b/src/wx/full_config_dialog.cc
@@ -191,7 +191,8 @@ private:
void export_cinemas_file ()
{
wxFileDialog* d = new wxFileDialog (
- _panel, _("Select Cinemas File"), wxEmptyString, wxEmptyString, wxT ("XML files (*.xml)|*.xml"), wxFD_SAVE
+ _panel, _("Select Cinemas File"), wxEmptyString, wxEmptyString, wxT ("XML files (*.xml)|*.xml"),
+ wxFD_SAVE | wxFD_OVERWRITE_PROMPT
);
if (d->ShowModal () == wxID_OK) {