Remove wxWidgets' file overwrite checks in favour of our own (because of #1383).
authorCarl Hetherington <cth@carlh.net>
Wed, 17 Oct 2018 18:46:18 +0000 (19:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 17 Oct 2018 18:46:18 +0000 (19:46 +0100)
src/wx/config_dialog.cc
src/wx/full_config_dialog.cc

index e55de008fb91b86ad2cf4742590a3a63820787ff..2f396ded0e969cb3675ac50ace51066675a936b8 100644 (file)
@@ -515,8 +515,7 @@ CertificateChainEditor::export_certificate ()
        }
 
        wxFileDialog* d = new wxFileDialog (
-               this, _("Select Certificate File"), wxEmptyString, wxEmptyString, wxT ("PEM files (*.pem)|*.pem"),
-               wxFD_SAVE | wxFD_OVERWRITE_PROMPT
+               this, _("Select Certificate File"), wxEmptyString, wxEmptyString, wxT ("PEM files (*.pem)|*.pem"), wxFD_SAVE
                );
 
        dcp::CertificateChain::List all = _get()->root_to_leaf ();
@@ -696,8 +695,7 @@ CertificateChainEditor::export_private_key ()
        }
 
        wxFileDialog* d = new wxFileDialog (
-               this, _("Select Key File"), wxEmptyString, wxEmptyString, wxT ("PEM files (*.pem)|*.pem"),
-               wxFD_SAVE | wxFD_OVERWRITE_PROMPT
+               this, _("Select Key File"), wxEmptyString, wxEmptyString, wxT ("PEM files (*.pem)|*.pem"), wxFD_SAVE
                );
 
        if (d->ShowModal () == wxID_OK) {
@@ -794,8 +792,7 @@ void
 KeysPage::export_decryption_chain_and_key ()
 {
        wxFileDialog* d = new wxFileDialog (
-               _panel, _("Select Export File"), wxEmptyString, wxEmptyString, wxT ("DOM files (*.dom)|*.dom"),
-               wxFD_SAVE | wxFD_OVERWRITE_PROMPT
+               _panel, _("Select Export File"), wxEmptyString, wxEmptyString, wxT ("DOM files (*.dom)|*.dom"), wxFD_SAVE
                );
 
        if (d->ShowModal () == wxID_OK) {
@@ -874,8 +871,7 @@ void
 KeysPage::export_decryption_chain ()
 {
        wxFileDialog* d = new wxFileDialog (
-               _panel, _("Select Chain File"), wxEmptyString, _("dcpomatic_kdm_decryption_chain.pem"), wxT ("PEM files (*.pem)|*.pem"),
-               wxFD_SAVE | wxFD_OVERWRITE_PROMPT
+               _panel, _("Select Chain File"), wxEmptyString, _("dcpomatic_kdm_decryption_chain.pem"), wxT ("PEM files (*.pem)|*.pem"), wxFD_SAVE
                );
 
        if (d->ShowModal () == wxID_OK) {
@@ -898,8 +894,7 @@ void
 KeysPage::export_decryption_certificate ()
 {
        wxFileDialog* d = new wxFileDialog (
-               _panel, _("Select Certificate File"), wxEmptyString, _("dcpomatic_kdm_decryption_cert.pem"), wxT ("PEM files (*.pem)|*.pem"),
-               wxFD_SAVE | wxFD_OVERWRITE_PROMPT
+               _panel, _("Select Certificate File"), wxEmptyString, _("dcpomatic_kdm_decryption_cert.pem"), wxT ("PEM files (*.pem)|*.pem"), wxFD_SAVE
                );
 
        if (d->ShowModal () == wxID_OK) {
index 974635a8b407f6f6cd0ee2096740a55a0b420e8d..8c822e1736d77d27e873fb5fb4c4d32f5b358955 100644 (file)
@@ -191,8 +191,7 @@ private:
        void export_cinemas_file ()
        {
                wxFileDialog* d = new wxFileDialog (
-                       _panel, _("Select Cinemas File"), wxEmptyString, wxEmptyString, wxT ("XML files (*.xml)|*.xml"),
-                       wxFD_SAVE | wxFD_OVERWRITE_PROMPT
+                       _panel, _("Select Cinemas File"), wxEmptyString, wxEmptyString, wxT ("XML files (*.xml)|*.xml"), wxFD_SAVE
                 );
 
                if (d->ShowModal () == wxID_OK) {