mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
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:
parent
7060fe697e
commit
ac38847d86
2 changed files with 4 additions and 3 deletions
|
|
@ -53,7 +53,7 @@ class ExportPreset {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void set_id (std::string const & id);
|
void set_id (std::string id);
|
||||||
|
|
||||||
XMLNode * get_instant_xml () const;
|
XMLNode * get_instant_xml () const;
|
||||||
void save_instant_xml () const;
|
void save_instant_xml () const;
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ ExportPreset::set_name (string const & name)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ExportPreset::set_id (string const & id)
|
ExportPreset::set_id (string id)
|
||||||
{
|
{
|
||||||
_id = id;
|
_id = id;
|
||||||
|
|
||||||
|
|
@ -103,8 +103,9 @@ void
|
||||||
ExportPreset::save (std::string const & filename)
|
ExportPreset::save (std::string const & filename)
|
||||||
{
|
{
|
||||||
save_instant_xml ();
|
save_instant_xml ();
|
||||||
|
|
||||||
if (global.root()) {
|
if (global.root()) {
|
||||||
global.set_filename (filename);
|
global.set_filename (filename);
|
||||||
global.write ();
|
global.write ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue