diff options
author | David Robillard <d@drobilla.net> | 2006-07-03 18:28:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-03 18:28:10 +0000 |
commit | 2df7c1a1e805bea3d439d345d37469a8d202a656 (patch) | |
tree | 4c3f0ebb6928b1f3437b6708ffc0ab7873756a6f /src/libs/engine/events/AddPortEvent.cpp | |
parent | 0aaae8b002fcff9fdd81a6155c609a546f68b938 (diff) | |
download | ingen-2df7c1a1e805bea3d439d345d37469a8d202a656.tar.gz ingen-2df7c1a1e805bea3d439d345d37469a8d202a656.tar.bz2 ingen-2df7c1a1e805bea3d439d345d37469a8d202a656.zip |
Creating of multiple patch input/output ports
git-svn-id: http://svn.drobilla.net/lad/ingen@80 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/AddPortEvent.cpp')
-rw-r--r-- | src/libs/engine/events/AddPortEvent.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/engine/events/AddPortEvent.cpp b/src/libs/engine/events/AddPortEvent.cpp index 1c96206a..92c9cfb9 100644 --- a/src/libs/engine/events/AddPortEvent.cpp +++ b/src/libs/engine/events/AddPortEvent.cpp @@ -45,8 +45,7 @@ AddPortEvent::AddPortEvent(CountedPtr<Responder> responder, const string& path, _data_type(DataType::UNKNOWN), _patch(NULL), _patch_port(NULL), - _driver_port(NULL), - _succeeded(true) + _driver_port(NULL) { string type_str; if (type == "CONTROL" || type == "AUDIO") @@ -118,8 +117,8 @@ AddPortEvent::execute(samplecount offset) void AddPortEvent::post_process() { - if (!_succeeded) { - const string msg = string("Could not create port - ").append(_path);// + " already exists."; + if (!_patch_port) { + const string msg = string("Could not create port - ").append(_path); m_responder->respond_error(msg); } else { m_responder->respond_ok(); |