Fix reference of track after free() (#4795).
[ardour.git] / gtk2_ardour / selection.h
index ac3c9330f0599890b3622746ecabe62e7e1b69c0..c474faa5b2a23613f639fbdc0b41d10d50bbdcfc 100644 (file)
@@ -86,6 +86,8 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        PointSelection       points;
        MarkerSelection      markers;
        MidiRegionSelection  midi_regions;
+
+       /** only used when this class is used as a cut buffer */
        MidiNoteSelection    midi_notes;
 
        Selection (PublicEditor const * e);
@@ -102,6 +104,8 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        sigc::signal<void> MidiNotesChanged;
        sigc::signal<void> MidiRegionsChanged;
 
+       void block_tracks_changed (bool);
+
        void clear ();
        bool empty (bool internal_selection = false);
 
@@ -202,6 +206,7 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
 
        PublicEditor const * editor;
        uint32_t next_time_id;
+       bool _no_tracks_changed;
 };
 
 bool operator==(const Selection& a, const Selection& b);