From: David ‘Bombe’ Roden Date: Fri, 30 May 2008 14:51:58 +0000 (+0200) Subject: always show directories as non-leaf nodes X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=022e29eabeac96f1b6c10ce6120ef92a5f7aa9dc;p=jSite2.git always show directories as non-leaf nodes --- 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(); } /**