summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-07 17:16:59 +0200
committerRobin Gareus <robin@gareus.org>2016-05-07 17:16:59 +0200
commite59ab55831f6daed1eb7a299120787182b9416b7 (patch)
tree4d71d62decdae9f0d6669e2cd5ed4c694a910c93 /libs/ardour/route.cc
parent2066afe28c9708b8739918f82d26a732684ea4a3 (diff)
a few strategic LocaleGuards..
..to prevent switching forth and back during individual ::state(), ::set_state() when loading/saving the session or locating.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 06a4545785..79799ce807 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -2704,6 +2704,7 @@ Route::get_template()
XMLNode&
Route::state(bool full_state)
{
+ LocaleGuard lg;
if (!_session._template_state_dir.empty()) {
assert (!full_state); // only for templates
foreach_processor (sigc::bind (sigc::mem_fun (*this, &Route::set_plugin_state_dir), _session._template_state_dir));