Save the excluded motor manufacturers in the preferences when they are

changed.
This commit is contained in:
kruland2607 2013-11-15 10:41:03 -06:00
parent 972d6fd507
commit b662cdc39f

View File

@ -151,7 +151,9 @@ public abstract class MotorFilterPanel extends JPanel {
@Override
public void contentsChanged(ListDataEvent e) {
MotorFilterPanel.this.filter.setExcludedManufacturers( manufacturerCheckList.getUncheckedItems() );
Collection<Manufacturer> uncheckedManufacturers = manufacturerCheckList.getUncheckedItems();
MotorFilterPanel.this.filter.setExcludedManufacturers( uncheckedManufacturers );
((SwingPreferences) Application.getPreferences()).setExcludedMotorManufacturers(uncheckedManufacturers);
onSelectionChanged();
}
});