Merge branch 'master' into windows
[ardour.git] / libs / ardour / port.cc
index d8a32e346753565bf36e1223eb684fd150c72ae7..bc5d26fb805431059246f5f29dd46c820ea125d0 100644 (file)
@@ -124,7 +124,7 @@ Port::disconnect_all ()
 bool
 Port::connected_to (std::string const & o) const
 {
-       if (!port_engine.connected()) {
+       if (!port_engine.available()) {
                return false;
        }
 
@@ -134,7 +134,7 @@ Port::connected_to (std::string const & o) const
 int
 Port::get_connections (std::vector<std::string> & c) const
 {
-       if (!port_engine.connected()) {
+       if (!port_engine.available()) {
                c.insert (c.end(), _connections.begin(), _connections.end());
                return c.size();
        }