Changeset 16965

Show
Ignore:
Timestamp:
22.08.2008 13:03:13 (11 years ago)
Author:
ak19
Message:

Method store() now does a Configuration.save() for JTextFields as well. Previously it was only done for the DropDown? control which is used for obtaining the gliserver.pl URL from the user.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/URLField.java

    r16338 r16965  
    8181        String value = ((JTextField)control).getText(); 
    8282        Configuration.setString(affected_property, true, value); 
     83        Configuration.save(); // save it in case of a crash 
    8384    }  
    8485    else { // DropDown 
    85         ((DropDown)control).saveProperties(); 
     86        ((DropDown)control).saveProperties(); // saves it already 
    8687    } 
    8788    }