diff options
author | David Robillard <d@drobilla.net> | 2014-11-13 21:32:08 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-13 21:32:08 -0500 |
commit | 589cc3162bb1bcae4d140f1314fc7b4138eaac98 (patch) | |
tree | 628a3106cd4053a7d7dad54979d410fe2ce9ef48 /gtk2_ardour/region_view.cc | |
parent | 4ba4677b4538c551e000dcae1289f966a4b07c26 (diff) |
Fix crash when deleting overlapped regions.
Use RegionSelection for MIDI regions as well, since the old dumb stub didn't do
some things correctly. There's probably no reason to have a separate class for
this at all, and some good ones for putting all regions in the same selection,
so we should probably do that. For now they are still separate in the
selection but use the same base class.
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r-- | gtk2_ardour/region_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index d4604b265d..fcdde48487 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -225,7 +225,9 @@ RegionView::~RegionView () bool RegionView::canvas_group_event (GdkEvent* event) { - return trackview.editor().canvas_region_view_event (event, group, this); + if (!in_destructor) { + return trackview.editor().canvas_region_view_event (event, group, this); + } } void |