Skip to content

Commit

Permalink
use toURI method to handle
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Jan 5, 2022
1 parent a403c31 commit 60efe94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class GenericFileChooser
private void handleFileSelection(File f)
{
if (box == null || f == null) return;
if (Files.isSymbolicLink(Paths.get(f.getAbsolutePath())) || f.getName().endsWith(".lnk")) {
if (Files.isSymbolicLink(Paths.get(f.toURI())) || f.getName().endsWith(".lnk")) {
JOptionPane.showMessageDialog(null, "Cannot use shortcut " +
"from selection box.");
box.setSelectedItem(f.getParentFile());
Expand Down

0 comments on commit 60efe94

Please sign in to comment.