summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-11 17:33:58 +0000
committerDavid Robillard <d@drobilla.net>2008-10-11 17:33:58 +0000
commit2ca16790ea78cdfb8d558878dd4cadd8821d8ecc (patch)
tree3b627ba57c68d03cd965d4e223aff3acba6096c2 /src/gui/NodeModule.cpp
parentb35105b4c4ee3c7fedc23cb5f6a663c18156e9f9 (diff)
downloadingen-2ca16790ea78cdfb8d558878dd4cadd8821d8ecc.tar.gz
ingen-2ca16790ea78cdfb8d558878dd4cadd8821d8ecc.tar.bz2
ingen-2ca16790ea78cdfb8d558878dd4cadd8821d8ecc.zip
Fix last fix. :)
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1637 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 0a24b39f..ee6b61d9 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -110,12 +110,12 @@ NodeModule::create(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<NodeModel> n
void
NodeModule::show_human_names(bool b)
{
- Glib::Mutex::Lock lock(App::instance().world()->rdf_world->mutex());
-
- if (b && node()->plugin())
+ if (b && node()->plugin()) {
+ Glib::Mutex::Lock lock(App::instance().world()->rdf_world->mutex());
set_name(((PluginModel*)node()->plugin())->human_name());
- else
+ } else {
b = false;
+ }
if (!b)
set_name(node()->symbol());