diff options
author | David Robillard <d@drobilla.net> | 2007-01-06 04:16:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-06 04:16:26 +0000 |
commit | 2122a857662203936a04a39df7d0e1ad1db82853 (patch) | |
tree | b31070a9d01ab20da1a03bf8d029dc3ce6ab66bc /src/libs/engine/events/DisconnectPortEvent.cpp | |
parent | 9c5f7e9dc2029f97d0baf622165701e7c124b25e (diff) | |
download | ingen-2122a857662203936a04a39df7d0e1ad1db82853.tar.gz ingen-2122a857662203936a04a39df7d0e1ad1db82853.tar.bz2 ingen-2122a857662203936a04a39df7d0e1ad1db82853.zip |
Work on Port destruction (still broken).
git-svn-id: http://svn.drobilla.net/lad/ingen@233 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/DisconnectPortEvent.cpp')
-rw-r--r-- | src/libs/engine/events/DisconnectPortEvent.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/engine/events/DisconnectPortEvent.cpp b/src/libs/engine/events/DisconnectPortEvent.cpp index 782b4cf4..cfd523e0 100644 --- a/src/libs/engine/events/DisconnectPortEvent.cpp +++ b/src/libs/engine/events/DisconnectPortEvent.cpp @@ -52,7 +52,7 @@ DisconnectPortEvent::DisconnectPortEvent(Engine& engine, SharedPtr<Responder> re DisconnectPortEvent::DisconnectPortEvent(Engine& engine, Port* port) : QueuedEvent(engine), - m_port_path(""), + m_port_path(port->path()), m_patch((port->parent_node() == NULL) ? NULL : port->parent_node()->parent_patch()), m_port(port), m_process_order(NULL), @@ -132,11 +132,13 @@ void DisconnectPortEvent::post_process() { if (m_succeeded) { - _responder->respond_ok(); + if (_responder) + _responder->respond_ok(); for (List<DisconnectionEvent*>::iterator i = m_disconnection_events.begin(); i != m_disconnection_events.end(); ++i) (*i)->post_process(); } else { - _responder->respond_error("Unable to disconnect port."); + if (_responder) + _responder->respond_error("Unable to disconnect port."); } } |