Changeset 11598


Ignore:
Timestamp:
2006-04-06T14:33:36+12:00 (18 years ago)
Author:
mdewsnip
Message:

You can now delete files from the "Downloaded Files" folder when no collection is open.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

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

    r11440 r11598  
    111111        // Is this the "Downloaded Files" folder?
    112112        if (source_nodes[i].getFile().getAbsolutePath().startsWith(downloaded_files_folder_path)) {
    113             // Can only delete from the "Downloaded Files" folder if a collection is open
    114             if (Gatherer.c_man.ready() == false) {
    115             return;
    116             }
    117113            read_only_source = false;
    118114        }
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r11595 r11598  
    701701        synchronized(this) {
    702702            // Force both workspace and collection trees to refresh
    703             if (Gatherer.g_man != null) {
     703            if (Gatherer.g_man != null && Gatherer.c_man.ready()) {
    704704            Gatherer.g_man.refreshWorkspaceTree(DragTree.COLLECTION_CONTENTS_CHANGED);
    705705            // Gatherer.g_man.refreshCollectionTree(DragTree.COLLECTION_CONTENTS_CHANGED);
  • trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java

    r11446 r11598  
    299299    bin_button = new RecycleBin();
    300300    bin_button.addActionListener(this);
    301     bin_button.setEnabled(false);
    302301    bin_button.setMinimumSize(MIN_SIZE);
    303302    bin_button.setPreferredSize(MIN_SIZE);
     
    443442    collection_tree.setEnabled(collection_loaded);
    444443    collection_filter.setEnabled(collection_loaded);
    445     bin_button.setEnabled(collection_loaded);
    446444    new_folder.setEnabled(collection_loaded);
    447445
Note: See TracChangeset for help on using the changeset viewer.