Notify UI when plugin state is copied/replaced
authorRobin Gareus <robin@gareus.org>
Sat, 4 Mar 2017 17:25:37 +0000 (18:25 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 4 Mar 2017 17:25:37 +0000 (18:25 +0100)
libs/ardour/plugin_insert.cc

index b4152d81e19a54d7e9a43fac464e0619cd640712..c82257a4f4ad71292b4a7d99b5497f3224eaa5da 100644 (file)
@@ -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;
                }
        }