From: David ‘Bombe’ Roden Date: Sat, 31 May 2008 17:41:34 +0000 (+0200) Subject: no file overrides for directories X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=060d411e74835c5c2cdf39efde67f23313208e06;p=jSite2.git no file overrides for directories --- 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();