diff options
-rw-r--r-- | muse/muse/ctrl/ctrldialog.cpp | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/muse/muse/ctrl/ctrldialog.cpp b/muse/muse/ctrl/ctrldialog.cpp index 206687eb..f1117469 100644 --- a/muse/muse/ctrl/ctrldialog.cpp +++ b/muse/muse/ctrl/ctrldialog.cpp @@ -112,40 +112,22 @@ CtrlDialog::CtrlDialog(Track* track, int currentId, QWidget* parent) } } } - // - // add rest parameter - // - ControllerNameList* cn = track->controllerNames(); - for (iControllerName i = cn->begin(); i != cn->end(); ++i) { - if (i->id & 0xfffff000) - continue; - ci = new QTreeWidgetItem(tw, i->id); - ci->setText(0, i->name); - Ctrl* ctrl = track->getController(i->id); - if (!ctrl->empty()) - ci->setText(1, "*"); - if (i->id == currentId) { - tw->setCurrentItem(ci); - tw->setItemSelected(ci, true); - } - } } - else { - ControllerNameList* cn = track->controllerNames(); - for (iControllerName i = cn->begin(); i != cn->end(); ++i) { - ci = new QTreeWidgetItem(tw, i->id); - ci->setText(0, i->name); - Ctrl* ctrl = track->getController(i->id); - if (!ctrl->empty()) - ci->setText(1, "*"); + ControllerNameList* cn = track->controllerNames(); + for (iControllerName i = cn->begin(); i != cn->end(); ++i) { + ci = new QTreeWidgetItem(tw, i->id); + ci->setText(0, i->name); + Ctrl* ctrl = track->getController(i->id); + if (!ctrl->empty()) + ci->setText(1, "*"); - if (i->id == currentId) { - tw->setCurrentItem(ci); - tw->setItemSelected(ci, true); - } + if (i->id == currentId) { + tw->setCurrentItem(ci); + tw->setItemSelected(ci, true); } } + ci = new QTreeWidgetItem(tw, CTRL_OTHER); ci->setText(0, tr("other")); connect(tw, |