always show directories as non-leaf nodes
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 30 May 2008 14:51:58 +0000 (16:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 30 May 2008 14:51:58 +0000 (16:51 +0200)
src/net/pterodactylus/jsite/gui/FileManager.java

index f4ea43c..bc903e6 100644 (file)
@@ -749,12 +749,8 @@ 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();
+                       return projectFileWrapper.getProjectFile().isFile();
                }
 
                /**