Fix error when exporting the cinemas file with overwrite.
[dcpomatic.git] / src / wx / full_config_dialog.cc
index bcaa61a9bf7767f1dba2a9be5f6cdea6ff1e5f34..0f99d85d806d917ee51d5e29ad89f25367292fc8 100644 (file)
@@ -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 ();
        }