@Override
	public void addSelectionPath(TreePath p) {

		if (p.getPathCount() == 1) {
			clearSelection();
			gui.imageBrowser.clearDates();
		}
		else if (p.getPathCount() == 2 || p.getPathCount() == 3) {
			Enumeration<?> e = ((MutableTreeNode) p.getLastPathComponent()).children();
			while (e.hasMoreElements()) {
				addSelectionPath(p.pathByAddingChild(e.nextElement()));
			}
			super.addSelectionPath(p);
		}
		else if (p.getPathCount() == 4) {
			gui.imageBrowser.addDate((ImgDate) p.getLastPathComponent());
			super.addSelectionPath(p);
		}
		gui.loadImages();
	}