Skip to content

Commit

Permalink
fix issue with ProcessorBox inside MonitorSection (session was not se…
Browse files Browse the repository at this point in the history
…t correctly)
  • Loading branch information
pauldavisthefirst committed Dec 15, 2018
1 parent b94c9ef commit 17a8a50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gtk2_ardour/monitor_section.cc
Expand Up @@ -91,7 +91,7 @@ MonitorSection::MonitorSection ()
* we do not need to worry about self-destructing when the Route (the
* monitor out) is destroyed.
*/

using namespace Menu_Helpers;

Glib::RefPtr<Action> act;
Expand All @@ -103,7 +103,7 @@ MonitorSection::MonitorSection ()
channel_size_group = SizeGroup::create (SIZE_GROUP_HORIZONTAL);

_plugin_selector = new PluginSelector (PluginManager::instance());
insert_box = new ProcessorBox (_session, boost::bind (&MonitorSection::plugin_selector, this), _rr_selection, 0);
insert_box = new ProcessorBox (0, boost::bind (&MonitorSection::plugin_selector, this), _rr_selection, 0);
insert_box->set_no_show_all ();
insert_box->show ();
// TODO allow keyboard shortcuts in ProcessorBox
Expand Down Expand Up @@ -583,6 +583,7 @@ MonitorSection::set_session (Session* s)
{
RouteUI::set_session (s);
_plugin_selector->set_session (_session);
insert_box->set_session (_session);

if (_session) {

Expand Down

0 comments on commit 17a8a50

Please sign in to comment.