Ignore:
Timestamp:
2003-05-28T09:49:58+12:00 (21 years ago)
Author:
kjdon
Message:

if you try to create a new folder with no folder selected, or more than one folder selected, it now creates one as a child of the root node

File:
1 edited

Legend:

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

    r4367 r4374  
    186186        }
    187187        if(error) {
    188         JOptionPane.showMessageDialog(Gatherer.g_man, Gatherer.dictionary.get("FileActions.No_Parent_For_New_Folder"), Gatherer.dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
     188        // instead of an error, we now create a new folder at the root
     189        FileNode node = (FileNode) collection_tree.getModel().getRoot();
     190        Gatherer.f_man.newFolder(collection_tree, node);
     191        //JOptionPane.showMessageDialog(Gatherer.g_man, Gatherer.dictionary.get("FileActions.No_Parent_For_New_Folder"), Gatherer.dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    189192        }
    190193    }
Note: See TracChangeset for help on using the changeset viewer.