diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/NodeModule.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index b90a7056..e09a3479 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -336,13 +336,14 @@ NodeModule::port(std::shared_ptr<const PortModel> model) void NodeModule::delete_port_view(std::shared_ptr<const PortModel> model) { - Port* p = port(model); - if (p) { - delete p; - } else { + Port* const p = port(model); + + if (!p) { app().log().warn("Failed to find port %1% on module %2%\n", model->path(), _block->path()); } + + delete p; } bool |