Fix potential crash at exit/close.
[ardour.git] / gtk2_ardour / selection.h
index aa9510beedc8258322afea80ecbdbf0058667f75..daa81ab1d694d56c6fc822f1cf41c29d7435d14a 100644 (file)
@@ -95,7 +95,6 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        // Selection& operator= (const Selection& other);
 
        sigc::signal<void> RegionsChanged;
-       sigc::signal<void> TracksChanged;
        sigc::signal<void> TimeChanged;
        sigc::signal<void> LinesChanged;
        sigc::signal<void> PlaylistsChanged;
@@ -104,9 +103,12 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        sigc::signal<void> MidiNotesChanged;
        sigc::signal<void> MidiRegionsChanged;
 
-       void block_tracks_changed (bool);
-
        void clear ();
+
+       /** check if all selections are empty
+        * @param internal_selection also check object internals (e.g midi notes, automation points), when false only check objects.
+        * @return true if nothing is selected.
+        */
        bool empty (bool internal_selection = false);
 
        void dump_region_layers();
@@ -221,12 +223,11 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        XMLNode& get_state () const;
        int set_state (XMLNode const &, int);
 
-       std::list<std::pair<PBD::ID const, std::list<boost::shared_ptr<Evoral::Note<Evoral::Beats> > > > > pending_midi_note_selection;
+       std::list<std::pair<PBD::ID const, std::list<Evoral::event_id_t> > > pending_midi_note_selection;
 
   private:
        PublicEditor const * editor;
        uint32_t next_time_id;
-       bool _no_tracks_changed;
 };
 
 bool operator==(const Selection& a, const Selection& b);