From: David ‘Bombe’ Roden Date: Fri, 30 May 2008 14:13:02 +0000 (+0200) Subject: don't show project root as leaf node X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=471e8a0b68464429b40e5908e2592d412798e36c;p=jSite2.git don't show project root as leaf node --- diff --git a/src/net/pterodactylus/jsite/gui/FileManager.java b/src/net/pterodactylus/jsite/gui/FileManager.java index 9e288b8..f4ea43c 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -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();