Changeset 34280

Show
Ignore:
Timestamp:
21.07.2020 19:46:55 (2 weeks ago)
Author:
ak19
Message:

Noticed today that export meta to CSV options were available all the time, when they should only be available when a collection is open.

Files:
1 modified

Legend:

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

    r34264 r34280  
    127127    file_exportmeta = new JMenuItem(Dictionary.get("Menu.File_ExportMeta")); 
    128128    file_exportmeta.addActionListener(Gatherer.g_man); 
     129    file_exportmeta.setEnabled(false); 
    129130    file_exportmeta.setComponentOrientation(Dictionary.getOrientation()); 
    130131 
    131132    file_movemeta = new JMenuItem(Dictionary.get("Menu.File_MoveMetaToCSV")); 
    132133    file_movemeta.addActionListener(Gatherer.g_man); 
     134    file_movemeta.setEnabled(false); 
    133135    file_movemeta.setComponentOrientation(Dictionary.getOrientation()); 
    134136     
     
    143145    file_options = new JMenuItem(Dictionary.get("Menu.File_Options")); 
    144146    file_options.addActionListener(Gatherer.g_man); 
    145         file_options.setComponentOrientation(Dictionary.getOrientation()); 
     147    file_options.setComponentOrientation(Dictionary.getOrientation()); 
    146148     
    147149    file_save = new JMenuItem(Dictionary.get("Menu.File_Save")); 
     
    297299    file_close.setEnabled(ready); 
    298300    file_save.setEnabled(ready); 
     301    file_exportmeta.setEnabled(ready); 
     302    file_movemeta.setEnabled(ready); 
    299303    } 
    300304