Skip to content
Snippets Groups Projects
Commit 54c2662e authored by jsiegle's avatar jsiegle
Browse files

Fix bug in PhaseDetectorEditor loading settings from XML

parent 6e50090a
No related branches found
No related tags found
No related merge requests found
......@@ -64,11 +64,12 @@ void PhaseDetectorEditor::updateSettings()
previousChannelCount = getProcessor()->getNumInputs();
}
channelSelectionBox->setSelectedId(1, false);
channelSelectionBox->setSelectedId(1, false);
getProcessor()->setParameter(1,-1.0f);
}
getProcessor()->setParameter(1,-1.0f);
}
void PhaseDetectorEditor::comboBoxChanged(ComboBox* c)
......@@ -117,7 +118,9 @@ void PhaseDetectorEditor::loadEditorParameters(XmlElement* xml)
int id = xmlNode->getIntAttribute("ID");
channelSelectionBox->setSelectedId(id);
std::cout << channelSelectionBox->getNumItems() << std::endl;
channelSelectionBox->setSelectedId(id, false);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment