Disable spill when target-bus is removed #8014
Individual mixer-strip already revert to default display when the send vanishes. This also resets the mixer view.
This commit is contained in:
parent
e20f74dcf1
commit
250da353d4
|
@ -3477,16 +3477,27 @@ void
|
||||||
Mixer_UI::show_spill (boost::shared_ptr<Stripable> s)
|
Mixer_UI::show_spill (boost::shared_ptr<Stripable> s)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<Stripable> ss = spilled_strip.lock();
|
boost::shared_ptr<Stripable> ss = spilled_strip.lock();
|
||||||
if (ss != s) {
|
if (ss == s) {
|
||||||
spilled_strip = s;
|
return;
|
||||||
show_spill_change (s); /* EMIT SIGNAL */
|
|
||||||
if (s) {
|
|
||||||
_group_tabs->hide ();
|
|
||||||
} else {
|
|
||||||
_group_tabs->show ();
|
|
||||||
}
|
|
||||||
redisplay_track_list ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spilled_strip = s;
|
||||||
|
_spill_gone_connection.disconnect ();
|
||||||
|
show_spill_change (s); /* EMIT SIGNAL */
|
||||||
|
|
||||||
|
if (s) {
|
||||||
|
s->DropReferences.connect (_spill_gone_connection, invalidator (*this), boost::bind (&Mixer_UI::spill_nothing, this), gui_context());
|
||||||
|
_group_tabs->hide ();
|
||||||
|
} else {
|
||||||
|
_group_tabs->show ();
|
||||||
|
}
|
||||||
|
redisplay_track_list ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Mixer_UI::spill_nothing ()
|
||||||
|
{
|
||||||
|
show_spill (boost::shared_ptr<Stripable> ());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -431,6 +431,9 @@ private:
|
||||||
RouteProcessorSelection _selection;
|
RouteProcessorSelection _selection;
|
||||||
AxisViewSelection _axis_targets;
|
AxisViewSelection _axis_targets;
|
||||||
|
|
||||||
|
void spill_nothing ();
|
||||||
|
PBD::ScopedConnection _spill_gone_connection;
|
||||||
|
|
||||||
void vca_assign (boost::shared_ptr<ARDOUR::VCA>);
|
void vca_assign (boost::shared_ptr<ARDOUR::VCA>);
|
||||||
void vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
|
void vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user