mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Add a global state localeguard (and one for route templates)
This commit is contained in:
parent
86c76656cc
commit
2b7a047e92
2 changed files with 3 additions and 0 deletions
|
|
@ -2704,6 +2704,7 @@ Route::get_template()
|
||||||
XMLNode&
|
XMLNode&
|
||||||
Route::state(bool full_state)
|
Route::state(bool full_state)
|
||||||
{
|
{
|
||||||
|
LocaleGuard lg ();
|
||||||
if (!_session._template_state_dir.empty()) {
|
if (!_session._template_state_dir.empty()) {
|
||||||
assert (!full_state); // only for templates
|
assert (!full_state); // only for templates
|
||||||
foreach_processor (sigc::bind (sigc::mem_fun (*this, &Route::set_plugin_state_dir), _session._template_state_dir));
|
foreach_processor (sigc::bind (sigc::mem_fun (*this, &Route::set_plugin_state_dir), _session._template_state_dir));
|
||||||
|
|
|
||||||
|
|
@ -1035,6 +1035,7 @@ Session::get_template()
|
||||||
XMLNode&
|
XMLNode&
|
||||||
Session::state (bool full_state)
|
Session::state (bool full_state)
|
||||||
{
|
{
|
||||||
|
LocaleGuard lg ();
|
||||||
XMLNode* node = new XMLNode("Session");
|
XMLNode* node = new XMLNode("Session");
|
||||||
XMLNode* child;
|
XMLNode* child;
|
||||||
|
|
||||||
|
|
@ -1296,6 +1297,7 @@ Session::get_control_protocol_state ()
|
||||||
int
|
int
|
||||||
Session::set_state (const XMLNode& node, int version)
|
Session::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
|
LocaleGuard lg ();
|
||||||
XMLNodeList nlist;
|
XMLNodeList nlist;
|
||||||
XMLNode* child;
|
XMLNode* child;
|
||||||
XMLProperty const * prop;
|
XMLProperty const * prop;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue