summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-02-03 00:52:45 +0000
committerCarl Hetherington <carl@carlh.net>2010-02-03 00:52:45 +0000
commitc3bfc3ec4e14d147d9c4c279eb6c73947781f956 (patch)
tree250b7e09a3552419249c317eec5258d08fe801ba /gtk2_ardour/automation_controller.cc
parentfaa2b3a3ad9217b0bde341f50a398515aefd703a (diff)
Stop crash on deleting a plugin when its generic UI window is open.
git-svn-id: svn://localhost/ardour2/branches/3.0@6626 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r--gtk2_ardour/automation_controller.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc
index 1a32c36b62..0d16628ab0 100644
--- a/gtk2_ardour/automation_controller.cc
+++ b/gtk2_ardour/automation_controller.cc
@@ -150,3 +150,9 @@ AutomationController::value_changed ()
Gtkmm2ext::UI::instance()->call_slot (boost::bind (&AutomationController::display_effective_value, this));
}
+/** Stop updating our value from our controllable */
+void
+AutomationController::stop_updating ()
+{
+ _screen_update_connection.disconnect ();
+}