mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 20:56:28 +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,15 +280,33 @@ EditingContext::EditingContext (std::string const & name)
|
||||||
|
|
||||||
EditingContext::~EditingContext()
|
EditingContext::~EditingContext()
|
||||||
{
|
{
|
||||||
ActionManager::drop_action_group (_midi_actions);
|
if (_midi_actions) {
|
||||||
ActionManager::drop_action_group (_common_actions);
|
ActionManager::drop_action_group (_midi_actions);
|
||||||
ActionManager::drop_action_group (editor_actions);
|
}
|
||||||
ActionManager::drop_action_group (snap_actions);
|
if (_common_actions) {
|
||||||
ActionManager::drop_action_group (length_actions);
|
ActionManager::drop_action_group (_common_actions);
|
||||||
ActionManager::drop_action_group (channel_actions);
|
}
|
||||||
ActionManager::drop_action_group (velocity_actions);
|
if (editor_actions) {
|
||||||
ActionManager::drop_action_group (zoom_actions);
|
ActionManager::drop_action_group (editor_actions);
|
||||||
ActionManager::drop_action_group (_automation_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
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue