Fix yet another oversight for the windows icon file update
[ardour.git] / libs / ardour / mac_vst_plugin.cc
index 08c39b1d354b31f55ee2f7a957aaf484bcfb5d85..8fc87aaeec3c27565e61a9ff9ca9a38d8eef6a43 100644 (file)
@@ -58,7 +58,13 @@ MacVSTPlugin::MacVSTPlugin (const MacVSTPlugin &other)
 
        _plugin = _state->plugin;
 
-       // Plugin::setup_controls ();
+       XMLNode* root = new XMLNode (other.state_node_name ());
+       LocaleGuard lg;
+       other.add_state (root);
+       set_state (*root, Stateful::loading_state_version);
+       delete root;
+
+       set_plugin (_state->plugin);
 }
 
 MacVSTPlugin::~MacVSTPlugin ()