From: gmungoc Date: Tue, 16 Jul 2019 10:47:26 +0000 (+0100) Subject: JAL-3144 better error message if no database selected X-Git-Tag: Release_2_11_4_0~45^2~18^2~123 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=85f6e96380285dfda463cd36317c55c4f5184ad8;p=jalview.git JAL-3144 better error message if no database selected --- 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);