Changeset 4562


Ignore:
Timestamp:
2003-06-11T13:48:24+12:00 (21 years ago)
Author:
kjdon
Message:

when naming a new subcollection filter, the name is not allowed spaces. so teh name is set to everything up to the first space

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java

    r4532 r4562  
    732732                 */
    733733        public void actionPerformed(ActionEvent event) {
    734         String n = name.getText();
     734        String n = name.getText(); // not allowed spaces!
     735        if (n.indexOf(' ')!=0) {
     736            n = n.substring(0, n.indexOf(' '));
     737            name.setText(n);
     738        }
    735739        String s = null;
    736740        Object o = source.getSelectedItem();
Note: See TracChangeset for help on using the changeset viewer.