no file overrides for directories
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 31 May 2008 17:41:34 +0000 (19:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 31 May 2008 17:41:34 +0000 (19:41 +0200)
src/net/pterodactylus/jsite/gui/FileManager.java

index b253bf0..a971342 100644 (file)
@@ -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();