From 022e29eabeac96f1b6c10ce6120ef92a5f7aa9dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 30 May 2008 16:51:58 +0200 Subject: [PATCH] always show directories as non-leaf nodes --- src/net/pterodactylus/jsite/gui/FileManager.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/net/pterodactylus/jsite/gui/FileManager.java b/src/net/pterodactylus/jsite/gui/FileManager.java index f4ea43c..bc903e6 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -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(); } /** -- 2.7.4