From 85f6e96380285dfda463cd36317c55c4f5184ad8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 16 Jul 2019 11:47:26 +0100 Subject: [PATCH] JAL-3144 better error message if no database selected --- src/jalview/gui/SequenceFetcher.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 646a7f1..8b5d3b7 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -436,6 +436,14 @@ public class SequenceFetcher extends JPanel implements Runnable resetDialog(); return; } + if (database.getSelectedIndex() == 0) + { + // todo i18n + showErrorMessage("Please choose a database"); + resetDialog(); + return; + } + exampleBtn.setEnabled(false); textArea.setEnabled(false); okBtn.setEnabled(false); -- 1.7.10.2