* here, as a single handler.
*/
- for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
- (*i)->set_selected (false);
- (*i)->hide_selection ();
+ if (what_changed.contains (Properties::selected)) {
+ for (TrackViewList::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) {
+ (*i)->set_selected (false);
+ (*i)->hide_selection ();
+ }
}
/* STEP 1: set the GUI selection state (in which TimeAxisViews for the
TimeAxisView* tav = dynamic_cast<TimeAxisView*> (av);
if (!tav) {
+ assert (0);
continue; /* impossible */
}