From 2f36a546ff554e3db3d7cb6bcc899dcd01dd242c Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 14 Jun 2023 23:52:35 +0100 Subject: [PATCH] JAL-4026 if relative path in recently opened exists from PWD, use it. --- src/jalview/io/JalviewFileChooser.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/io/JalviewFileChooser.java b/src/jalview/io/JalviewFileChooser.java index fe01a69..1a4326c 100755 --- a/src/jalview/io/JalviewFileChooser.java +++ b/src/jalview/io/JalviewFileChooser.java @@ -548,6 +548,11 @@ public class JalviewFileChooser extends JFileChooser } } + if (!file.isAbsolute() && file.exists()) + { + file = file.getAbsoluteFile(); + } + setSelectedFile(file); } } -- 1.7.10.2