summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-24 04:50:59 +0000
committerDavid Robillard <d@drobilla.net>2011-09-24 04:50:59 +0000
commit0e310888809be1b55e6c24081f41f56bebf00f58 (patch)
treee5f5ea7fa66feaa1b5c99e01a9a81530f8596eea /src
parenteae593911c18a2f7a59c00920dfb5d09846e940d (diff)
downloadingen-0e310888809be1b55e6c24081f41f56bebf00f58.tar.gz
ingen-0e310888809be1b55e6c24081f41f56bebf00f58.tar.bz2
ingen-0e310888809be1b55e6c24081f41f56bebf00f58.zip
Fix crash when plugin model is not available.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3487 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-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()) {