- if (arg0.getStateChange() == ItemEvent.SELECTED)
- editor.edit(null, ClientModel.SHEETS, ClientModel.SHEETS_CURRENT, arg0.getItem(), null,
- null);
+ if (arg0.getStateChange() == ItemEvent.SELECTED) {
+ editor.edit(null, ClientModel.SHEETS, ClientModel.SHEETS_CURRENT, arg0.getItem(), null, null);
+ HashSet<String> targets = new HashSet<>();
+ targets.add(ClientModel.MODE);
+ resetSelections(editor, targets);
+ }