add and remove monitor section bindings as MS is created/destroyed
This commit is contained in:
parent
fb4bd3feef
commit
81f32cec1b
@ -39,6 +39,7 @@
|
|||||||
#include "ardour/user_bundle.h"
|
#include "ardour/user_bundle.h"
|
||||||
#include "ardour/plugin_manager.h"
|
#include "ardour/plugin_manager.h"
|
||||||
|
|
||||||
|
#include "ardour_ui.h"
|
||||||
#include "gui_thread.h"
|
#include "gui_thread.h"
|
||||||
#include "monitor_section.h"
|
#include "monitor_section.h"
|
||||||
#include "public_editor.h"
|
#include "public_editor.h"
|
||||||
@ -94,7 +95,10 @@ MonitorSection::MonitorSection (Session* s)
|
|||||||
if (!monitor_actions) {
|
if (!monitor_actions) {
|
||||||
register_actions ();
|
register_actions ();
|
||||||
load_bindings ();
|
load_bindings ();
|
||||||
set_data ("ardour-bindings", bindings);
|
if (bindings) {
|
||||||
|
set_data ("ardour-bindings", bindings);
|
||||||
|
ARDOUR_UI::instance()->add_keyboard_binding_tab (_("Monitor Section"), *bindings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_plugin_selector = new PluginSelector (PluginManager::instance());
|
_plugin_selector = new PluginSelector (PluginManager::instance());
|
||||||
@ -488,6 +492,8 @@ MonitorSection::MonitorSection (Session* s)
|
|||||||
|
|
||||||
MonitorSection::~MonitorSection ()
|
MonitorSection::~MonitorSection ()
|
||||||
{
|
{
|
||||||
|
ARDOUR_UI::instance()->remove_keyboard_binding_tab (_("Monitor Section"));
|
||||||
|
|
||||||
for (ChannelButtons::iterator i = _channel_buttons.begin(); i != _channel_buttons.end(); ++i) {
|
for (ChannelButtons::iterator i = _channel_buttons.begin(); i != _channel_buttons.end(); ++i) {
|
||||||
delete *i;
|
delete *i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user