summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchPortModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-13 23:12:15 +0000
committerDavid Robillard <d@drobilla.net>2012-05-13 23:12:15 +0000
commitb731f5a51bbccdcc346add34eb6c04ac22941768 (patch)
tree2f22036acaa64cac24ad12befb09117b53ac0a3b /src/gui/PatchPortModule.cpp
parenta77f8abd48020c23fa894cc0e0e24927696adf1e (diff)
downloadingen-b731f5a51bbccdcc346add34eb6c04ac22941768.tar.gz
ingen-b731f5a51bbccdcc346add34eb6c04ac22941768.tar.bz2
ingen-b731f5a51bbccdcc346add34eb6c04ac22941768.zip
Handle exception by reference.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4397 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchPortModule.cpp')
-rw-r--r--src/gui/PatchPortModule.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index e716a12d..3c04d29e 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -119,10 +119,11 @@ PatchPortModule::show_human_names(bool b)
{
const URIs& uris = app().uris();
const Atom& name = _model->get_property(uris.lv2_name);
- if (b && name.type() == uris.forge.String)
+ if (b && name.type() == uris.forge.String) {
set_name(name.get_string());
- else
+ } else {
set_name(_model->symbol().c_str());
+ }
}
void