summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());