From c60034ea2b17fcd3d835de8e854c460325baa031 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 1 Jun 2008 23:38:02 +0200 Subject: [PATCH] fix misbehaviour when clicking out of selected range --- src/net/pterodactylus/jsite/gui/FileManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/pterodactylus/jsite/gui/FileManager.java b/src/net/pterodactylus/jsite/gui/FileManager.java index e9d6f3f..cdfc9d1 100644 --- a/src/net/pterodactylus/jsite/gui/FileManager.java +++ b/src/net/pterodactylus/jsite/gui/FileManager.java @@ -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); -- 2.7.4