Commit b37b0704 authored by Nico Mack's avatar Nico Mack

Minor improvements in SelectionGroup class

parent c01efdc8
......@@ -189,10 +189,15 @@ public class SelectionGroup implements SelectionListener {
if (isExclusive) {
for (int index = 0; index < this.group.size(); index++) {
this.group.get(index).setSelected(index == found);
Selectable current = this.group.get(index);
if (index != found) {
current.setSelected(false);
}
}
} else {
this.group.get(found).setSelected(true);
}
if (!candidate.isSelected()) {
candidate.setSelected(true);
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment