Changeset 8391


Ignore:
Timestamp:
2004-10-20T16:21:46+13:00 (20 years ago)
Author:
mdewsnip
Message:

Added code to prevent people from deleting files from the "Downloaded Files" area with the "Del" key when no collection is open. (You get zillions of exceptions otherwise).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r8243 r8391  
    9999        }
    100100
     101        // Can only delete from the "Downloaded Files" folder if a collection is open
     102        if (from_downloaded_files_folder && Gatherer.c_man.ready() == false) {
     103            return;
     104        }
     105
    101106        if (source.toString().equals("Workspace") && !from_downloaded_files_folder) {
    102107            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Read_Only"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.