Changeset 10604

Show
Ignore:
Timestamp:
20.09.2005 12:34:40 (14 years ago)
Author:
mdewsnip
Message:

Fixed a nasty bug discovered at the 2005 Fiji workshop: if you enter a metadata value in the Enrich pane and then leave the pane before the value is saved (ie. pressing Enter, or Up or Down, or choosing another file or metadata element), all the metadata in the folder is lost.

Files:
1 modified

Legend:

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

    r10547 r10604  
    202202    public void loseFocus() 
    203203    { 
     204    // Very important: make sure metadata value is saved before leaving the pane 
     205    metadata_value_table_pane.stopEditingAndRebuild(file_nodes); 
     206 
    204207    // Upload the modified metadata.xml files to the server now, if we're using one 
    205208    MetadataXMLFileManager.uploadModifiedMetadataXMLFiles();