use legalize_for_path() on filenames for export presets and formats

git-svn-id: svn://localhost/ardour2/branches/3.0@9127 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-03-12 20:17:38 +00:00
parent 7060fe697e
commit ac38847d86
2 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class ExportPreset {
private:
void set_id (std::string const & id);
void set_id (std::string id);
XMLNode * get_instant_xml () const;
void save_instant_xml () const;

View File

@ -66,7 +66,7 @@ ExportPreset::set_name (string const & name)
}
void
ExportPreset::set_id (string const & id)
ExportPreset::set_id (string id)
{
_id = id;
@ -103,8 +103,9 @@ void
ExportPreset::save (std::string const & filename)
{
save_instant_xml ();
if (global.root()) {
global.set_filename (filename);
global.set_filename (filename);
global.write ();
}
}