From 060d411e74835c5c2cdf39efde67f23313208e06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 31 May 2008 19:41:34 +0200 Subject: [PATCH] no file overrides for directories --- 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 b253bf0..a971342 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -511,6 +511,9 @@ public class FileManager extends JDialog implements I18nable, ActionListener, Tr for (TreePath selectedPath: selectedPaths) { ProjectFileWrapper projectFileWrapper = (ProjectFileWrapper) selectedPath.getLastPathComponent(); ProjectFile projectFile = projectFileWrapper.getProjectFile(); + if (!projectFile.isFile()) { + continue; + } FileOverride fileOverride = project.getFileOverride(projectFile); if (fileOverride == null) { fileOverride = new FileOverride(); -- 2.7.4