From: Carl Hetherington Date: Tue, 30 Aug 2022 20:58:36 +0000 (+0200) Subject: Fix error when exporting the cinemas file with overwrite. X-Git-Tag: v2.16.23~5 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=8a2eeb8c00db2809b8b3fa848d628cf0cd7cb411 Fix error when exporting the cinemas file with overwrite. --- diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc index bcaa61a9b..0f99d85d8 100644 --- a/src/wx/full_config_dialog.cc +++ b/src/wx/full_config_dialog.cc @@ -173,7 +173,7 @@ private: ); if (d->ShowModal () == wxID_OK) { - boost::filesystem::copy_file (Config::instance()->cinemas_file(), wx_to_std(d->GetPath())); + boost::filesystem::copy_file(Config::instance()->cinemas_file(), wx_to_std(d->GetPath()), boost::filesystem::copy_option::overwrite_if_exists); } d->Destroy (); }