Changeset 4375


Ignore:
Timestamp:
2003-05-28T10:11:21+12:00 (21 years ago)
Author:
kjdon
Message:

and now if a file is selected, it tries to create a folder as a child of the parent. if that is unsuccessful, it goes back to teh root

File:
1 edited

Legend:

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

    r4374 r4375  
    179179        }
    180180        else {
    181             error = true;
     181            // try the parent
     182            FileNode parent = (FileNode)node.getParent();
     183            if (parent!=null && parent.getAllowsChildren()) {
     184            Gatherer.f_man.newFolder(collection_tree, parent);
     185            } else {
     186            error = true;
     187            }
    182188        }
    183189        }
Note: See TracChangeset for help on using the changeset viewer.