summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/ControlPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/ingenuity/ControlPanel.cpp')
-rw-r--r--src/progs/ingenuity/ControlPanel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/progs/ingenuity/ControlPanel.cpp b/src/progs/ingenuity/ControlPanel.cpp
index 90d17c8a..94945e28 100644
--- a/src/progs/ingenuity/ControlPanel.cpp
+++ b/src/progs/ingenuity/ControlPanel.cpp
@@ -21,7 +21,6 @@
#include "NodeModel.h"
#include "PortModel.h"
#include "ControlGroups.h"
-#include "PatchController.h"
namespace Ingenuity {
@@ -52,21 +51,18 @@ ControlPanel::~ControlPanel()
void
-ControlPanel::init(NodeController* node, size_t poly)
+ControlPanel::init(CountedPtr<NodeModel> node, size_t poly)
{
assert(node != NULL);
assert(poly > 0);
- const CountedPtr<NodeModel> node_model(node->node_model());
-
if (poly > 1) {
m_voice_spinbutton->set_range(0, poly - 1);
} else {
remove(*m_voice_control_box);
}
- for (PortModelList::const_iterator i = node_model->ports().begin();
- i != node_model->ports().end(); ++i) {
+ for (PortModelList::const_iterator i = node->ports().begin(); i != node->ports().end(); ++i) {
add_port(*i);
}