From b4e9f0379504e975c21ce1f42aa9de3909893423 Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:59:14 -0800 Subject: [PATCH] auto trim entries to track hub dialog. Fixes #1485 --- .../java/org/broad/igv/ui/action/LoadFromURLMenuAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/broad/igv/ui/action/LoadFromURLMenuAction.java b/src/main/java/org/broad/igv/ui/action/LoadFromURLMenuAction.java index 85a535358f..c7106823e1 100644 --- a/src/main/java/org/broad/igv/ui/action/LoadFromURLMenuAction.java +++ b/src/main/java/org/broad/igv/ui/action/LoadFromURLMenuAction.java @@ -157,7 +157,7 @@ else if (inputs.length == 1 && SessionReader.isSessionFile(inputs[0])) { } else if ((e.getActionCommand().equalsIgnoreCase(LOAD_TRACKHUB))) { String urlOrAccension = JOptionPane.showInputDialog(IGV.getInstance().getMainFrame(), ta, "Enter GCA or GCF accension, or URL to hub.txt file", - JOptionPane.QUESTION_MESSAGE); + JOptionPane.QUESTION_MESSAGE).trim(); String url; if(urlOrAccension.startsWith("GC")) {