summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index d76ca7d6..edd4ec06 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -218,10 +218,11 @@ App::port_activity(Port* port)
inserted.first->second = false;
if (port->is_output()) {
- for (Port::Connections::const_iterator i = port->connections().begin(); i != port->connections().end(); ++i) {
- const SharedPtr<Port> dst = PtrCast<Port>(i->lock()->dest().lock());
+ for (Port::Connections::const_iterator i = port->connections().begin();
+ i != port->connections().end(); ++i) {
+ Port* const dst = dynamic_cast<Port*>((*i)->dest());
if (dst)
- port_activity(dst.get());
+ port_activity(dst);
}
}