summaryrefslogtreecommitdiffstats
path: root/src/progs/gtk/PatchController.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-14 18:23:57 +0000
committerDavid Robillard <d@drobilla.net>2006-06-14 18:23:57 +0000
commit5a7beed295e6c8cee627774b9ca4d2e0eff510c1 (patch)
treedf080d187fc75292a163d5ab7331b15027e81154 /src/progs/gtk/PatchController.cpp
parent52f5c887cf8d4149278d137684f8f1ee31231d65 (diff)
downloadingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.gz
ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.bz2
ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.zip
Removed unused cruft from GTK client
git-svn-id: http://svn.drobilla.net/lad/grauph@37 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk/PatchController.cpp')
-rw-r--r--src/progs/gtk/PatchController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progs/gtk/PatchController.cpp b/src/progs/gtk/PatchController.cpp
index 10f2f639..cbc8f626 100644
--- a/src/progs/gtk/PatchController.cpp
+++ b/src/progs/gtk/PatchController.cpp
@@ -431,7 +431,7 @@ PatchController::add_node(CountedPtr<NodeModel> nm)
// FIXME: Should PatchController really be responsible for creating these?
NodeController* nc = NULL;
- if (nm->plugin()->type() == PluginModel::DSSI)
+ if (nm->plugin() && nm->plugin()->type() == PluginModel::DSSI)
nc = new DSSIController(nm);
else
nc = new NodeController(nm);
@@ -439,7 +439,7 @@ PatchController::add_node(CountedPtr<NodeModel> nm)
assert(nc != NULL);
assert(nm->controller() == nc);
- // Check if this is a bridge node
+ // Check if this is a bridge node - FIXME: remove this
CountedPtr<PortModel> pm = patch_model()->get_port(nm->path().name());
if (pm) {
cerr << "Bridge node." << endl;