Skip to content

Commit

Permalink
'#39 updates lastClickedPath also when clicking for start dragging from
Browse files Browse the repository at this point in the history
Combined Filterer Tree.
  • Loading branch information
patrickdalla committed Jul 1, 2024
1 parent 5ea4e4f commit 3d2392b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iped-app/src/main/java/iped/app/ui/FiltersPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@ public void mouseReleased(MouseEvent e) {
structuredFiltererTree.setDropMode(DropMode.ON);
filtersTree.setTransferHandler(fth);

structuredFiltererTree.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
lastClickedPath = structuredFiltererTree.getPathForLocation(e.getX(), e.getY());
}
});

structuredFiltererTree.addMouseListener(new MouseAdapter() {
public void showPopupMenu(MouseEvent e) {
Object o = structuredFiltererTree.getPathForLocation(e.getX(), e.getY()).getLastPathComponent();
Expand Down

0 comments on commit 3d2392b

Please sign in to comment.