diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-04 18:25:37 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-04 18:25:37 +0100 |
commit | 044cfab946649c8006ed1f9f8e770e942a29b51d (patch) | |
tree | 03c176471271ce8784a612556edcc47527cf680b /libs/ardour/plugin_insert.cc | |
parent | ad6ddf70df5034a5b48a4bac22e9f552cf502c21 (diff) |
Notify UI when plugin state is copied/replaced
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index b4152d81e1..c82257a4f4 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -2565,6 +2565,14 @@ PluginInsert::set_state(const XMLNode& node, int version) } } + /* when copying plugin state, notify UI */ + for (Controls::const_iterator li = controls().begin(); li != controls().end(); ++li) { + boost::shared_ptr<PBD::Controllable> c = boost::dynamic_pointer_cast<PBD::Controllable> (li->second); + if (c) { + c->Changed (false, Controllable::NoGroup); /* EMIT SIGNAL */ + } + } + break; } } |