summaryrefslogtreecommitdiff
path: root/src/wx/full_config_dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/full_config_dialog.cc')
-rw-r--r--src/wx/full_config_dialog.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc
index 974635a8b..96a4c86e9 100644
--- a/src/wx/full_config_dialog.cc
+++ b/src/wx/full_config_dialog.cc
@@ -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 ();
}