From 6829a1c1b3c577cdd6bc6d206dd52608b0a976ab Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 17 Oct 2018 20:18:27 +0100 Subject: Revert overwrite changes; remove our replacement of file extension (#1383). --- src/wx/wx_util.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/wx/wx_util.cc') 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 -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(); - } - return p; -} - double calculate_mark_interval (double mark_interval) { -- cgit v1.2.3