Changeset 5665


Ignore:
Timestamp:
2003-10-17T04:41:23+13:00 (21 years ago)
Author:
jmt12
Message:

Fixed bug where it didn't allow zero length local libary server (if you didn't have one)

File:
1 edited

Legend:

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

    r5593 r5665  
    159159        if(affected_property != null && Gatherer.config != null) {
    160160        String value = value_field.getText();
    161         if(value.length() == 0) {
    162             bad_value = true;
    163         }
    164         else if(value_field instanceof URLField) {
    165             bad_value = !((URLField)value_field).validateURL();
    166         }
    167         if(!bad_value) {
    168             // Store the value of the property
    169             Gatherer.config.setString(affected_property, true, value_field.getText());
     161        if(value.length() > 0) {
     162           if(value_field instanceof URLField) {
     163              bad_value = !((URLField)value_field).validateURL();
     164           }
     165           if(!bad_value) {
     166              // Store the value of the property
     167              Gatherer.config.setString(affected_property, true, value_field.getText());
     168           }
    170169        }
    171170        }
Note: See TracChangeset for help on using the changeset viewer.