fix misbehaviour when clicking out of selected range
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 1 Jun 2008 21:38:02 +0000 (23:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 1 Jun 2008 21:38:02 +0000 (23:38 +0200)
src/net/pterodactylus/jsite/gui/FileManager.java

index e9d6f3f..cdfc9d1 100644 (file)
@@ -446,6 +446,7 @@ public class FileManager extends JDialog implements I18nable, ActionListener, Tr
                ProjectFileWrapper clickedProjectFileWrapper = (ProjectFileWrapper) clickedPath.getLastPathComponent();
                if (!selectedProjectFileWrappers.contains(clickedProjectFileWrapper)) {
                        fileTree.setSelectionPath(clickedPath);
+                       selectedProjectFileWrappers = getSelectedProjectFileWrappers(false);
                }
                if (selectedProjectFileWrappers.size() == 1) {
                        ProjectFileWrapper projectFileWrapper = selectedProjectFileWrappers.get(0);