summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r--src/PatchageCanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index e081acb..7a75046 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -60,7 +60,9 @@ PatchageCanvas::find_module(const std::string& name, ModuleType type)
++j) {
if (j->second->type() == type) {
return j->second;
- } else if (j->second->type() == ModuleType::input_output) {
+ }
+
+ if (j->second->type() == ModuleType::input_output) {
io_module = j->second;
}
}