fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / session_configuration.cc
index c8e09ad1b1e7d1de176a1fded98a9b11c9e77002..b8814711f376a856e6fea8df430cf9ceb8a89bbe 100644 (file)
@@ -30,7 +30,7 @@
 #include "ardour/filesystem_paths.h"
 #include "ardour/session_configuration.h"
 #include "ardour/utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -54,7 +54,7 @@ XMLNode&
 SessionConfiguration::get_state ()
 {
        XMLNode* root;
-       LocaleGuard lg (X_("C"));
+       LocaleGuard lg;
 
        root = new XMLNode ("Ardour");
        root->add_child_nocopy (get_variables ());
@@ -67,7 +67,7 @@ XMLNode&
 SessionConfiguration::get_variables ()
 {
        XMLNode* node;
-       LocaleGuard lg (X_("C"));
+       LocaleGuard lg;
 
        node = new XMLNode ("Config");
 
@@ -159,7 +159,7 @@ SessionConfiguration::load_state ()
 
                XMLNode* node;
                if (((node = find_named_node (root, X_("Config"))) != 0)) {
-                       LocaleGuard lg (X_("C"));
+                       LocaleGuard lg;
                        set_variables(*node);
                        info << _("Loaded custom session defaults.") << endmsg;
                } else {