13
0

fix breakage of normal method of creating an empty MIDI region

git-svn-id: svn://localhost/ardour2/branches/3.0@11341 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-01-24 22:17:24 +00:00
parent 05451a80f2
commit 34581e4de9

View File

@ -1269,14 +1269,18 @@ Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemTyp
return true;
}
if (internal_editing()) {
bool leave_internal_edit_mode = false;
switch (item_type) {
case NoteItem:
break;
case RegionItem:
if (!dynamic_cast<MidiRegionView*> (clicked_regionview)) {
ActionManager::do_action ("MouseMode", "toggle-internal-edit");
leave_internal_edit_mode = true;
}
break;
@ -1294,8 +1298,18 @@ Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemTyp
change the editing mode.
*/
break;
case StreamItem:
if (!dynamic_cast<MidiTimeAxisView*> (clicked_axisview)) {
leave_internal_edit_mode = true;
}
break;
default:
break;
}
if (leave_internal_edit_mode) {
ActionManager::do_action ("MouseMode", "toggle-internal-edit");
}
}