diff options
author | David Robillard <d@drobilla.net> | 2006-06-21 07:03:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-21 07:03:30 +0000 |
commit | 90013966c14d18c7c55a906c319704bc1ffc4ae9 (patch) | |
tree | 51ec917ce77914968447358db5c1fdef954d573b /src/libs/engine/events/ConnectionEvent.cpp | |
parent | adac9032064d973ff6cfe1f94d8619c71fe199a3 (diff) | |
download | ingen-90013966c14d18c7c55a906c319704bc1ffc4ae9.tar.gz ingen-90013966c14d18c7c55a906c319704bc1ffc4ae9.tar.bz2 ingen-90013966c14d18c7c55a906c319704bc1ffc4ae9.zip |
More renaming, fixed bugs with disconnecting patch ports internally
git-svn-id: http://svn.drobilla.net/lad/ingen@74 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/ConnectionEvent.cpp')
-rw-r--r-- | src/libs/engine/events/ConnectionEvent.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/libs/engine/events/ConnectionEvent.cpp b/src/libs/engine/events/ConnectionEvent.cpp index 1182c723..aedfd881 100644 --- a/src/libs/engine/events/ConnectionEvent.cpp +++ b/src/libs/engine/events/ConnectionEvent.cpp @@ -164,19 +164,17 @@ TypedConnectionEvent<T>::TypedConnectionEvent(CountedPtr<Responder> responder, O assert(dst_port != NULL); } -template <typename T> -TypedConnectionEvent<T>::~TypedConnectionEvent() -{ - // FIXME: haaaack, prevent a double delete - // this class is unusable by anything other than ConnectionEvent because of this - //m_responder = NULL; -} - template <typename T> void TypedConnectionEvent<T>::pre_process() -{ +{ + if (m_dst_port->is_connected_to(m_src_port)) { + m_succeeded = false; + QueuedEvent::pre_process(); + return; + } + Node* const src_node = m_src_port->parent_node(); Node* const dst_node = m_dst_port->parent_node(); |