13
0

Fixes a memory corruption upon closing the 2nd session

This commit is contained in:
Mathias Buhr 2016-02-26 22:24:55 +01:00 committed by Paul Davis
parent 990c365ebf
commit 7ce373e6f0

View File

@ -185,8 +185,8 @@ MonitorSection::MonitorSection (Session* s)
toggle_processorbox_button.set_name (X_("monitor section processors toggle"));
set_tooltip (&toggle_processorbox_button, _("Allow one to add monitor effect processors"));
proctoggle = myactions.register_toggle_action (monitor_actions, "toggle-monitor-processor-box", _("Toggle Monitor Section Processor Box"),
sigc::mem_fun(*this, &MonitorSection::update_processor_box));
proctoggle = ActionManager::get_action (X_("Monitor"), X_("toggle-monitor-processor-box"));
assert(proctoggle);
toggle_processorbox_button.set_related_action (proctoggle);
/* Knobs */
@ -910,6 +910,9 @@ MonitorSection::register_actions ()
sigc::mem_fun (*this, &MonitorSection::solo_use_afl));
myactions.register_radio_action (solo_actions, solo_group, "solo-use-pfl", _("Pre Fade Listen (PFL) solo"),
sigc::mem_fun (*this, &MonitorSection::solo_use_pfl));
proctoggle = myactions.register_toggle_action (monitor_actions, "toggle-monitor-processor-box", _("Toggle Monitor Section Processor Box"),
sigc::mem_fun(*this, &MonitorSection::update_processor_box));
}
void