Retain first-selected-stripable when removing ATAV
This allows ctrl surfaces (notably Faderport) to keep editing plugin settings, when some unrelated plugin is removed. Route::processors_changed calls RouteTimeAxisView::processors_changed, and if a plugin automation line vanishes ~AutomationTimeAxisView deselected the track. This triggered a control surface update.
This commit is contained in:
parent
bfb22e2acc
commit
83e4b49a9e
@ -1493,7 +1493,10 @@ Selection::remove (const TrackViewList& t)
|
||||
PresentationInfo::ChangeSuspender cs;
|
||||
|
||||
for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) {
|
||||
std::shared_ptr<Stripable> s = (*i)->stripable ();
|
||||
std::shared_ptr<Stripable> s;
|
||||
if (!dynamic_cast<AutomationTimeAxisView*> (*i)) {
|
||||
s = (*i)->stripable ();
|
||||
}
|
||||
std::shared_ptr<AutomationControl> c = (*i)->control ();
|
||||
selection.remove (s, c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user