When removing an item which is event-insensitive, there is no need to repick the current item, since it can never have been used as the current item.
This fixes crashes associated with ghost notes in midi regions.
This commit is contained in:
parent
8ad27cc777
commit
2691209050
@ -577,7 +577,13 @@ GtkCanvas::item_going_away (Item* item, boost::optional<Rect> bounding_box)
|
||||
_focused_item = 0;
|
||||
}
|
||||
|
||||
pick_current_item (0); // no mouse state
|
||||
/* an item which ignores events can never be the current item
|
||||
so we do not need to repick the current item.
|
||||
*/
|
||||
|
||||
if (!item->ignore_events()) {
|
||||
pick_current_item (0); // no mouse state
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user