Revert overwrite changes; remove our replacement of file extension (#1383).
[dcpomatic.git] / src / wx / full_config_dialog.cc
index 974635a8b407f6f6cd0ee2096740a55a0b420e8d..96a4c86e9b00d164578a799a8290704f808bc1db 100644 (file)
@@ -196,10 +196,7 @@ private:
                 );
 
                if (d->ShowModal () == wxID_OK) {
-                       optional<boost::filesystem::path> path = path_from_file_dialog (d, "xml");
-                       if (path) {
-                               boost::filesystem::copy_file (Config::instance()->cinemas_file(), *path);
-                       }
+                       boost::filesystem::copy_file (Config::instance()->cinemas_file(), wx_to_std(d->GetPath()));
                }
                d->Destroy ();
        }