JAL-3144 better error message if no database selected
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 16 Jul 2019 10:47:26 +0000 (11:47 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 16 Jul 2019 10:47:26 +0000 (11:47 +0100)
src/jalview/gui/SequenceFetcher.java

index 646a7f1..8b5d3b7 100755 (executable)
@@ -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);