Skip to content
Snippets Groups Projects
Commit 6c42ebae authored by Josh Siegle's avatar Josh Siegle
Browse files

Merge branch 'master' of https://github.com/open-ephys/GUI

parents ca0d8427 ceded719
No related branches found
No related tags found
No related merge requests found
......@@ -275,10 +275,18 @@ void SpikeDetectorEditor::buttonEvent(Button* button)
}
if (!button->getToggleState()) {
thresholdSlider->setActive(false);
electrodeButtons.clear();
drawElectrodeButtons(electrodeList->getSelectedItemIndex());
if (!button->getToggleState())
{
thresholdSlider->setActive(false);
// This will be -1 with nothing selected
int selectedItemIndex = electrodeList->getSelectedItemIndex();
if (selectedItemIndex != -1)
{
drawElectrodeButtons(selectedItemIndex);
} else {
electrodeButtons.clear();
}
}
// channelSelector->setActiveChannels(activeChannels);
......
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