mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 04:36:30 +01:00
EditingContext: don't call drop_action_group() if an action group was not created
Example would be an audio clip editor that does not define MIDI actions
This commit is contained in:
parent
d8c10a96bd
commit
c0fa42a203
1 changed files with 27 additions and 9 deletions
|
|
@ -280,16 +280,34 @@ EditingContext::EditingContext (std::string const & name)
|
|||
|
||||
EditingContext::~EditingContext()
|
||||
{
|
||||
if (_midi_actions) {
|
||||
ActionManager::drop_action_group (_midi_actions);
|
||||
}
|
||||
if (_common_actions) {
|
||||
ActionManager::drop_action_group (_common_actions);
|
||||
}
|
||||
if (editor_actions) {
|
||||
ActionManager::drop_action_group (editor_actions);
|
||||
}
|
||||
if (snap_actions) {
|
||||
ActionManager::drop_action_group (snap_actions);
|
||||
}
|
||||
if (length_actions) {
|
||||
ActionManager::drop_action_group (length_actions);
|
||||
}
|
||||
if (channel_actions) {
|
||||
ActionManager::drop_action_group (channel_actions);
|
||||
}
|
||||
if (velocity_actions) {
|
||||
ActionManager::drop_action_group (velocity_actions);
|
||||
}
|
||||
if (zoom_actions) {
|
||||
ActionManager::drop_action_group (zoom_actions);
|
||||
}
|
||||
if (_automation_actions) {
|
||||
ActionManager::drop_action_group (_automation_actions);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
EditingContext::ui_parameter_changed (string parameter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue