don't show project root as leaf node
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 30 May 2008 14:13:02 +0000 (16:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 30 May 2008 14:13:02 +0000 (16:13 +0200)
src/net/pterodactylus/jsite/gui/FileManager.java

index 9e288b8..f4ea43c 100644 (file)
@@ -749,6 +749,9 @@ public class FileManager extends JDialog implements I18nable, ActionListener, Tr
                                logger.log(Level.SEVERE, "node is not a ProjectFileWrapper!");
                                return true;
                        }
+                       if (node == projectFileWrappers.get(baseProjectFile)) {
+                               return false;
+                       }
                        ProjectFileWrapper projectFileWrapper = (ProjectFileWrapper) node;
                        ProjectFile projectFile = projectFileWrapper.getProjectFile();
                        return projectFile.getFiles().isEmpty();