son't try to select non-existent notes after editing (and thus crash).
[ardour.git] / gtk2_ardour / selection.h
index aa9510beedc8258322afea80ecbdbf0058667f75..8599da70d8287d478f0dbc1f289ba53006a18513 100644 (file)
@@ -107,6 +107,11 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
        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,7 +226,7 @@ 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;