summaryrefslogtreecommitdiff
path: root/libs/ardour/redirect.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-01-04 20:12:44 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-01-04 20:12:44 +0000
commitc5e2ffa8a7d9e6602bb2025f2d3fdf689b608520 (patch)
tree98cc6f042b5bea6ab9f440ee7c04bb1af6424f0d /libs/ardour/redirect.cc
parentd41f7a0a701bb7af04ab4b3c2a26ff23f96407f9 (diff)
add -d/--disable-plugins option to allow easy restart with troublesome plugins
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2828 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/redirect.cc')
-rw-r--r--libs/ardour/redirect.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/redirect.cc b/libs/ardour/redirect.cc
index 045faf6ebf..b1e631015f 100644
--- a/libs/ardour/redirect.cc
+++ b/libs/ardour/redirect.cc
@@ -274,8 +274,11 @@ Redirect::set_state (const XMLNode& node)
}
if (_active != (prop->value() == "yes")) {
- _active = !_active;
- active_changed (this, this); /* EMIT_SIGNAL */
+ if (!(_session.state_of_the_state() & Session::Loading) ||
+ !Session::get_disable_all_loaded_plugins()) {
+ _active = !_active;
+ active_changed (this, this); /* EMIT_SIGNAL */
+ }
}
if ((prop = node.property ("placement")) == 0) {