From c1d9e518064719f16992477848f03b7449c8b908 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 24 Nov 2008 02:34:36 +0000 Subject: Fix crash on mouse over of subpatches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1778 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui') 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(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(model); -- cgit v1.2.1