Changeset 6636 for trunk/gli


Ignore:
Timestamp:
2004-01-28T14:41:41+13:00 (20 years ago)
Author:
jmt12
Message:

Fixed a tiny bug where the email provided here would always overwrite whatever had been set in the config file

File:
1 edited

Legend:

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

    r6389 r6636  
    374374        String creator_email_str = creator_emailfield.getText();
    375375        creator_collectionmeta.setValue(creator_email_str);
    376         Gatherer.config.setEmail(creator_email_str); // Store the email address in the configuration
     376        // If the email is currently empty, store this email
     377        if(Gatherer.config.getEmail() == null) {
     378            Gatherer.config.setEmail(creator_email_str); // Store the email address in the configuration
     379        }
    377380        collection_extra_collectionmeta.setValue(description_textarea.getText());
    378381        icon_collection_collectionmeta.setValue(icon_textfield.getText());
Note: See TracChangeset for help on using the changeset viewer.