"Selected" is a PresentationInfo Property.
authorRobin Gareus <robin@gareus.org>
Sat, 5 Aug 2017 19:12:52 +0000 (21:12 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 5 Aug 2017 19:12:52 +0000 (21:12 +0200)
This fixes MIDI Input follows MIDI track selection (and maybe other
issues) and hopefully breaks nothing else (most places subscribe to
both Stripable::PropertyChanged and PresentationInfo::PropertyChanged).

libs/ardour/selection.cc

index 3193b12b20d29dbf39acd5aca631db98be0828af..d6d76574bf68f2ea4eb19c83f529f74e7156b319 100644 (file)
@@ -86,7 +86,7 @@ CoreSelection::add (boost::shared_ptr<Stripable> s, boost::shared_ptr<Automation
                */
                if (s) {
                        PropertyChange pc (Properties::selected);
-                       s->PropertyChanged (pc);
+                       s->presentation_info().PropertyChanged (pc);
                }
        }
 }
@@ -116,7 +116,7 @@ CoreSelection::remove (boost::shared_ptr<Stripable> s, boost::shared_ptr<Automat
                */
                if (s) {
                        PropertyChange pc (Properties::selected);
-                       s->PropertyChanged (pc);
+                       s->presentation_info().PropertyChanged (pc);
                }
        }
 }
@@ -145,7 +145,7 @@ CoreSelection::set (boost::shared_ptr<Stripable> s, boost::shared_ptr<Automation
        */
        if (s) {
                PropertyChange pc (Properties::selected);
-               s->PropertyChanged (pc);
+               s->presentation_info().PropertyChanged (pc);
        }
 }
 
@@ -183,7 +183,7 @@ CoreSelection::clear_stripables ()
                PropertyChange pc (Properties::selected);
 
                for (std::vector<boost::shared_ptr<Stripable> >::iterator ss = s.begin(); ss != s.end(); ++ss) {
-                       (*ss)->PropertyChanged (pc);
+                       (*ss)->presentation_info().PropertyChanged (pc);
                }
 
        }