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/midi_selection.h | |
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/midi_selection.h')
-rw-r--r-- | gtk2_ardour/midi_selection.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk2_ardour/midi_selection.h b/gtk2_ardour/midi_selection.h index f2c2d3fc60..2aa04356d7 100644 --- a/gtk2_ardour/midi_selection.h +++ b/gtk2_ardour/midi_selection.h @@ -20,22 +20,19 @@ #ifndef __ardour_gtk_midi_selection_h__ #define __ardour_gtk_midi_selection_h__ -#include <list> -#include "pbd/signals.h" +#include "region_selection.h" class MidiRegionView; class MidiCutBuffer; class RegionView; -class MidiRegionSelection : public std::list<MidiRegionView*> +class MidiRegionSelection : public RegionSelection { public: MidiRegionSelection (); - MidiRegionSelection (MidiRegionSelection const &); + MidiRegionSelection (const MidiRegionSelection&); -private: - void remove_it (RegionView *); - PBD::ScopedConnection _death_connection; + MidiRegionSelection& operator= (const MidiRegionSelection&); }; struct MidiNoteSelection : std::list<MidiCutBuffer*> {}; |