summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Port.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 450b75cf..809f43f1 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -307,7 +307,7 @@ Port::set_selected(bool b)
const App& app = App::instance();
SharedPtr<const NodeModel> node = PtrCast<NodeModel>(pm->parent());
PatchWindow* win = app.window_factory()->parent_patch_window(node);
- if (win) {
+ if (win && node->plugin_model()) {
const std::string& doc = node->plugin_model()->port_documentation(
pm->index());
if (!doc.empty()) {