diff options
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r-- | src/gui/NodeModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index acb46834..512bdebb 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -256,10 +256,8 @@ NodeModule::port(boost::shared_ptr<PortModel> model) { for (PortVector::const_iterator p = ports().begin(); p != ports().end(); ++p) { SharedPtr<Port> port = PtrCast<Port>(*p); - if (port->model() == model) { - cout << "FOUND: " << model->path() << endl; + if (port->model() == model) return port; - } } return boost::shared_ptr<Port>(); } |