diff options
author | David Robillard <d@drobilla.net> | 2008-11-24 02:34:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-24 02:34:36 +0000 |
commit | c1d9e518064719f16992477848f03b7449c8b908 (patch) | |
tree | 26686c29328926f0aa9fe5b08665dc85986f15d0 /src/gui | |
parent | d3c7142837dc6d1d460477115fa81dc51b92a1ce (diff) | |
download | ingen-c1d9e518064719f16992477848f03b7449c8b908.tar.gz ingen-c1d9e518064719f16992477848f03b7449c8b908.tar.bz2 ingen-c1d9e518064719f16992477848f03b7449c8b908.zip |
Fix crash on mouse over of subpatches.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1778 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/PatchWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index c2e9872d..fe3c498a 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -294,7 +294,8 @@ PatchWindow::object_entered(ObjectModel* model) NodeModel* node = dynamic_cast<NodeModel*>(model); if (node) { PluginModel* plugin = (PluginModel*)node->plugin(); - msg.append(" \"").append(plugin->human_name()).append("\""); + if (plugin) + msg.append(" \"").append(plugin->human_name()).append("\""); } PortModel* port = dynamic_cast<PortModel*>(model); |