mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Make MIDI automation tracks behave the same as MIDI
tracks when they are clicked in an area with no region (approximation to a fix for #4155). git-svn-id: svn://localhost/ardour2/branches/3.0@9860 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dc900af74c
commit
82ec615da3
1 changed files with 11 additions and 3 deletions
|
|
@ -725,7 +725,7 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||
if (dynamic_cast<MidiTimeAxisView*> (clicked_axisview)) {
|
||||
_drags->set (new RegionCreateDrag (this, item, clicked_axisview), event);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
_drags->set (new SelectionDrag (this, item, SelectionDrag::CreateSelection), event);
|
||||
return true;
|
||||
|
|
@ -879,9 +879,17 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||
break;
|
||||
|
||||
case AutomationTrackItem:
|
||||
/* rubberband drag to select automation points */
|
||||
_drags->set (new RubberbandSelectDrag (this, item), event);
|
||||
{
|
||||
TimeAxisView* parent = clicked_axisview->get_parent ();
|
||||
if (parent && dynamic_cast<MidiTimeAxisView*> (parent)) {
|
||||
/* create a MIDI region so that we have somewhere to put automation */
|
||||
_drags->set (new RegionCreateDrag (this, item, parent), event);
|
||||
} else {
|
||||
/* rubberband drag to select automation points */
|
||||
_drags->set (new RubberbandSelectDrag (this, item), event);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case SelectionItem:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue