From: David ‘Bombe’ Roden Date: Sun, 1 Jun 2008 21:38:02 +0000 (+0200) Subject: fix misbehaviour when clicking out of selected range X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c60034ea2b17fcd3d835de8e854c460325baa031;p=jSite2.git fix misbehaviour when clicking out of selected range --- 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);