From 0e310888809be1b55e6c24081f41f56bebf00f58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Sep 2011 04:50:59 +0000 Subject: Fix crash when plugin model is not available. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3487 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 node = PtrCast(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()) { -- cgit v1.2.1