diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-04 02:07:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-04 02:07:38 +0000 |
commit | 2c37c192902117fb9fd01dda5718e8da8e82197d (patch) | |
tree | 9f2eb98e2bf1716b4dff0377ad055813ab84cabc | |
parent | 631e2535bcdaa08e4c38108e90f17edd09ea11ad (diff) |
fix mistake in cleaning up control protocols when reloading sessions
git-svn-id: svn://localhost/ardour2/branches/2.0.1@1781 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/control_protocol_manager.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index c79aa74698..00c05b2800 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -96,8 +96,10 @@ ControlProtocolManager::drop_session () for (list<ControlProtocolInfo*>::iterator p = control_protocol_info.begin(); p != control_protocol_info.end(); ++p) { // otherwise the ControlProtocol instances are not recreated in set_session - (*p)->requested = true; - (*p)->protocol = 0; + if ((*p)->protocol) { + (*p)->requested = true; + (*p)->protocol = 0; + } } } } |