summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r--src/JackDriver.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index 904fcc6..0d8c2b9 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -259,9 +259,7 @@ JackDriver::create_port(PatchageModule& parent,
_app->show_human_names(),
order);
- if (id.type() != PortID::Type::nothing) {
- dynamic_cast<PatchageCanvas*>(parent.canvas())->index_port(id, ret);
- }
+ _app->canvas()->index_port(id, ret);
return ret;
}