From 471e8a0b68464429b40e5908e2592d412798e36c 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:13:02 +0200 Subject: [PATCH] don't show project root as leaf node --- src/net/pterodactylus/jsite/gui/FileManager.java | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.7.4