diff --git a/libs/surfaces/mackie/subview.cc b/libs/surfaces/mackie/subview.cc index 14001e28f4..99500c0a60 100644 --- a/libs/surfaces/mackie/subview.cc +++ b/libs/surfaces/mackie/subview.cc @@ -881,7 +881,7 @@ TrackViewSubview::notify_change (AutomationType type, uint32_t global_strip_posi PluginSubview::PluginSubview(MackieControlProtocol& mcp, boost::shared_ptr subview_stripable) : Subview(mcp, subview_stripable) { - _plugin_subview_state = boost::make_shared(*this); + _plugin_subview_state = boost::shared_ptr(new PluginSelect (*this)); connect_processors_changed_signal(); } @@ -1077,7 +1077,7 @@ void PluginSelect::handle_vselect_event(uint32_t global_strip_position, boost::shared_ptr plugin = boost::dynamic_pointer_cast(processor); processor->ShowUI(); if (plugin) { - _context.set_state(boost::make_shared(_context, boost::weak_ptr(plugin))); + _context.set_state (boost::shared_ptr (new PluginEdit (_context, boost::weak_ptr(plugin)))); } } @@ -1175,7 +1175,7 @@ bool PluginEdit::plugin_went_away() const void PluginEdit::switch_to_plugin_select_state() { - _context.set_state(boost::make_shared(_context)); + _context.set_state (boost::shared_ptr (new PluginSelect (_context))); } void PluginEdit::setup_vpot(