diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-17 20:18:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-17 20:18:27 +0100 |
| commit | 6829a1c1b3c577cdd6bc6d206dd52608b0a976ab (patch) | |
| tree | c7375aa4ec8c7a61b0a1f9d0e2d818d7d6971d1c /src/wx/wx_util.cc | |
| parent | 08d14b3aac137152a3aeb58c170b1b69bd0dd9eb (diff) | |
Revert overwrite changes; remove our replacement of file extension (#1383).v2.13.62
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index db6340031..0b1c68319 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -463,17 +463,6 @@ maybe_show_splash () return splash; } -optional<boost::filesystem::path> -path_from_file_dialog (wxFileDialog* dialog, string extension) -{ - boost::filesystem::path p(wx_to_std(dialog->GetPath())); - p.replace_extension(extension); - if (boost::filesystem::is_regular_file(p) && !confirm_dialog(dialog, wxString::Format(_("A file named %s already exists. Do you want to replace it?"), std_to_wx(p.filename().string())))) { - return optional<boost::filesystem::path>(); - } - return p; -} - double calculate_mark_interval (double mark_interval) { |
