Skip to content
Snippets Groups Projects
Commit 84de1174 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Do not update electrodes in spikesorter when last one is removed

parent 57242f2d
Branches
Tags
No related merge requests found
......@@ -523,9 +523,11 @@ bool SpikeSorter::removeElectrode(int index)
void SpikeSorter::setElectrodeName(int index, String newName)
{
mut.enter();
if ((electrodes.size() > 0) && (index > 0))
electrodes[index-1]->name = newName;
updateSinks(electrodes[index-1]->electrodeID, newName);
if ((electrodes.size() > 0) && (index > 0))
{
electrodes[index - 1]->name = newName;
updateSinks(electrodes[index - 1]->electrodeID, newName);
}
mut.exit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment