Clean up 135814cf0, prefer PannableChanged signal

This allows to also catch cases when a panner-ui directly changes
set_linked_to_route() of the panner shell.
This commit is contained in:
Robin Gareus 2020-04-25 16:18:50 +02:00
parent ba31151c42
commit e16ac09e54
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 8 additions and 1 deletions

View file

@ -124,6 +124,7 @@ private:
Send (const Send&);
void panshell_changed ();
void pannable_changed ();
void snd_output_changed (IOChange, void*);
void update_delaylines ();

View file

@ -108,6 +108,7 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas
if (panner_shell()) {
panner_shell()->Changed.connect_same_thread (*this, boost::bind (&Send::panshell_changed, this));
panner_shell()->PannableChanged.connect_same_thread (*this, boost::bind (&Send::pannable_changed, this));
}
if (_output) {
_output->changed.connect_same_thread (*this, boost::bind (&Send::snd_output_changed, this, _1, _2));
@ -453,7 +454,6 @@ void
Send::set_panner_linked_to_route (bool onoff) {
if (_panshell) {
_panshell->set_linked_to_route (onoff);
PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */
}
}
@ -503,6 +503,12 @@ Send::panshell_changed ()
_meter->configure_io (ChanCount (DataType::AUDIO, pan_outs()), ChanCount (DataType::AUDIO, pan_outs()));
}
void
Send::pannable_changed ()
{
PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */
}
bool
Send::set_name (const string& new_name)
{